JQuery special effects: Box breaking and moving animation effects, jquery box
Today, we will createJQueryA very sweet animation effect. Our idea is that there is a small box at the top of the website. When a menu item is clicked, the main content area formed by the box animation is scattered everywhere. We will use different animation effects, and we will add options for menu items.
Download the demo plug-in
Articles you may be interested in
- 10 useful results in Web development [Source Code download]
- Excellent jQuery Ajax paging plug-ins and tutorials carefully selected
- 12 amazing creative 404 error page Designs
- Let the website get started! 12 excellent jQuery animation plug-ins
- Amazing 8 HTML5 & JavaScript Special Effects
Link to this article: jQuery special effects tutorial: Box breaking and moving animation Effects
Source: Dream sky ◆ focus on front-end development technology ◆ share web design resources
[Maya special effect] implements a broken glass floor. You need advice urgently. Thank you!
It is made with the blastcode. First, k-glass Earth-dropping animation will trigger an explosion point when it comes into contact with the ground and debug it repeatedly.
Jquery special effect: When the mouse passes through the object to display the floating layer, how can we determine that the floating layer is displayed above the object after it goes beyond the lower part of the screen?
How can I raise another question? Have you asked the same question?
Let me give you an answer!
This is a good solution!
Step 1 set the style of user_con to position: absolute
In the second step, do not rush to show user_con! First, determine whether the height of the current box will go beyond the browser screen when it is displayed! Change the code!
$ (". User"). hover (function (){
Var box = $ (this). next ();
Box. show ();
Var _ h = box. height (),
_ Top = box. offset (). top,
_ Wh = $ (window). height ();
If (_ h + _ top> _ wh ){
Box.css ({top: (_ top-_ h-20) + 'px '});
}
}, Function (){
$ (This). next (). hide ();
});