"Share" JS image slide Fade fade-in-use method.

Source: Internet
Author: User

The former director of the array said to do an invitation effect Click here to view the mouse drag

It was built with Adobe Edge software, with too much code and redundancy.

Plus I haven't learned how to use this software, increasing the cost of learning affects project progress.

So I wrote a simple one. Move the mouse to the lower right corner of the window scrolling see effect →demo

But the monomer does not use multiple picture division movement, of course, if the project needs, change it is not laborious, much simpler than the above.

Use the method below:

#bg{position:fixed;width:100%;Height:200%;background:URL (images/bg.jpg);background-size:100% 100%; }#wrap{width:100%;Height:100%; } #wrap > div    {position:Absolute; Left:20%;Top:30%; }. img1 ~ Div{Opacity:0; }. Rotate{-webkit-transition:-webkit-transform 500s Linear;-moz-transition:-moz-transform 500s Linear;-o-transition:-o-transform 500s Linear;transition:Transform 500s linear; }
<DivID= "BG"></Div><!--Background ID -<DivID= "Wrap"><!--the body and background of the Div class must be in img+ number form down -        <Divclass= "IMG1"><imgsrc= "Images/shou.png"width= "100%"class= "Rotate" /></Div>        <Divclass= "Img2"><imgsrc= "Images/map.jpg"width= "100%" /></Div>        <Divclass= "IMG3"><imgsrc= "Images/u.png"width= "100%" /></Div>        <Divclass= "Img4"><imgsrc= "Images/keji_06.png"width= "100%" /></Div></Div> 

CSS Settings bg wants a background URL

JS is not affixed to the interest to read the source of the download to see the top of the demo can also be seen.

It would be nice to change the mouse wheel to a touch-screen event if you want the phone to trigger.

#wrap子元素的DIV有多少张图片就依次的 class= "Number of img+ pictures";

Attachment Download: Click here

Thank you.

Margo_test
Source: http://www.cnblogs.com/margo/

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.