jQuery mouseover picture border animation special effects
js code
<script> $(function(){ // Border effect--move in function biankuang(){ $('.biankuang_1').stop(true).animate({ height:'305px' },300) $('.biankuang_2').stop(true).delay(300).animate({ width:'360px' },300) $('.biankuang_3').stop(true).animate({ height:'305px' },300) $('.biankuang_4').stop(true).delay(300).animate({ width:'360px' },300) } // Border effect--move out function biankuang1(){ $('.biankuang_1').stop(true).delay(100).animate({ height:'0px' },100) $('.biankuang_2').stop(true).animate({ width:'0px' },100) $('.biankuang_3').stop(true).delay(100).animate({ height:'0px' },100) $('.biankuang_4').stop(true).animate({ width:'0px' },100) } // trigger $('.cn_gobuy').hover( function () { $('.text_gobuy').addClass('text_gobuy_show'); $('.search_y').animate({left:'150',opacity:1},300); biankuang(); }, function () { $('.text_gobuy').removeClass('text_gobuy_show'); $('.search_y').animate({left:'100',opacity:0},300); biankuang1(); } ); }) </script>
The jQuery mouse-over picture border animation special effect is an animation code that displays a red border when the mouse moves the product picture.
All resources on this site are contributed by netizens or reprinted by major download sites. Please check the integrity of the software yourself! All resources on this site are for learning reference only. Please do not use them for commercial purposes. Otherwise, you will be responsible for all consequences! If there is any infringement, please contact us to delete it. Contact information: admin@php.cn
Related Article
16 May 2016
This article mainly introduces jQuery animation special effects, and describes in detail the implementation method of jQuery animation special effects. It is very practical. Friends who need it can refer to it.
28 Nov 2017
In addition to asynchronous, what we need to use most in jquery is animation and special effects. If we want to give users a better experience, jquery is the best choice. Let us take a look at the detailed explanation of jquery animation and special effects.
06 Jul 2016
jquery waterfall flow LightBox picture box special effects
16 May 2016
This article mainly introduces the special effects of jquery slideshow with animation effect. It is recommended to everyone. Friends who need it can refer to it.
16 May 2016
This article will collect 10 awesome jQuery image slider animations for you, all carefully selected by the editor. I hope these ready-made jQuery plug-ins will save you a lot of development time.
16 May 2016
This article mainly introduces the usage of JQuery animation and special effects. It analyzes the usage techniques of display and hiding, sliding, fading in and out and custom animation with examples. Friends who need it can refer to it below.
21 Jul 2016
Pure css3 3D picture cube rotation animation special effects
16 May 2016
jQuery is a very excellent JavaScript framework that is simple and flexible to use, and there are many mature plug-ins to choose from. Among them, one of the most impressive applications of jQuery is image processing, which can help you add various exquisite image display effects to your projects.
16 May 2016
This article mainly introduces Jquery to realize the special effects of imitating Tencent Entertainment channel focus picture (slideshow). Friends who need it can refer to it.
Hot Tools
jQuery2019 Valentine's Day Confession Fireworks Animation Special Effects
A very popular jQuery Valentine's Day confession fireworks animation special effect on Douyin, suitable for programmers and technical geeks to express their love to the girl they love. No matter you choose to be willing or not, you have to agree in the end.
layui responsive animated login interface template
layui responsive animated login interface template
520 Valentine's Day confession web animation special effects
jQuery Valentine's Day Confession Animation, 520 Confession Background Animation
Cool system login page
Cool system login page
HTML5 tape music player-CASSETTE PLAYER
HTML5 tape music player-CASSETTE PLAYER