


When making a website, animation effects are often used to prevent the pictures from being too bland: jumping from small to large. This effect is very visually impactful and significantly increases attention~
Principle: Use the animation attribute @keyframes@-moz-keyframes@-webkit-keyframes of css3 to define the animation suofang, and then use animation to call suofang. An animation frame and add the animation to the picture. It should be noted that the picture needs to be given a processing equivalent to initialization
transform:scale(0); -moz-transform:scale(0); -webkit-transform:scale(0);
Finally in js Call css animation. For different pages, you need to use index to mark different pages.
1 <!--第二屏开始--> 2 <div class="section"> 3 <div class="mdmobile-second-one"> 4 <div class="mdmobile-second-one-top"> 5 <img class="mdmobile-second-one-top-top lazy" src="/static/imghwm/default1.png" data-src="images/06_03.png" / alt="css3 simply implements icon animation to display one by one from small to large_html/css_WEB-ITnose" > 6 <img class="mdmobile-second-one-top-foot lazy" src="/static/imghwm/default1.png" data-src="images/06_07.png" / alt="css3 simply implements icon animation to display one by one from small to large_html/css_WEB-ITnose" > 7 </div> 8 9 <div class="mdmobile-second-one-middle">10 <div class="mdmobile-second-one-middle-top">11 <img class="mdmobile-second-one-middle-top-left lazy" src="/static/imghwm/default1.png" data-src="images/07_03.png" / alt="css3 simply implements icon animation to display one by one from small to large_html/css_WEB-ITnose" >12 <img class="mdmobile-second-one-middle-top-right lazy" src="/static/imghwm/default1.png" data-src="images/07_05.png" / alt="css3 simply implements icon animation to display one by one from small to large_html/css_WEB-ITnose" >13 <div class="clear"></div>14 </div>15 <div class="mdmobile-second-one-middle-middle">16 <img class="mdmobile-second-one-middle-middle-one lazy" src="/static/imghwm/default1.png" data-src="images/07_09.png" / alt="css3 simply implements icon animation to display one by one from small to large_html/css_WEB-ITnose" >17 <img class="mdmobile-second-one-middle-middle-two lazy" src="/static/imghwm/default1.png" data-src="images/07_11.png" / alt="css3 simply implements icon animation to display one by one from small to large_html/css_WEB-ITnose" >18 <img class="mdmobile-second-one-middle-middle-three lazy" src="/static/imghwm/default1.png" data-src="images/07_13.png" / alt="css3 simply implements icon animation to display one by one from small to large_html/css_WEB-ITnose" >19 <div class="clear"></div>20 </div>21 <div class="mdmobile-second-one-middle-foot">22 <img class="mdmobile-second-one-middle-foot-left lazy" src="/static/imghwm/default1.png" data-src="images/07_16.png" / alt="css3 simply implements icon animation to display one by one from small to large_html/css_WEB-ITnose" >23 <img class="mdmobile-second-one-middle-foot-right lazy" src="/static/imghwm/default1.png" data-src="images/07_18.png" / alt="css3 simply implements icon animation to display one by one from small to large_html/css_WEB-ITnose" >24 <div class="clear"></div>25 </div>26 </div>27 <div class="mdmobile-second-one-foot">28 </div>29 </div>30 </div>31 <!--第二屏结束-->
1 /*第二屏开始*/ 2 3 @keyframes suofang { 4 0% {transform:scale(0.2);} 5 100% {transform:scale(1.0);} 6 } 7 @-moz-keyframes suofang { 8 0% {-moz-transform:scale(0.2);} 9 100% {-moz-transform:scale(1.0);}10 }11 @-webkit-keyframes suofang {12 0% {-webkit-transform:scale(0.2);}13 100% {-webkit-transform:scale(1.0);}14 }15 .mdmobile-second-one-middle-top-right.active,16 .mdmobile-second-one-middle-top-left.active,17 .mdmobile-second-one-middle-middle-one.active,18 .mdmobile-second-one-middle-middle-two.active,19 .mdmobile-second-one-middle-middle-three.active,20 .mdmobile-second-one-middle-foot-left.active,21 .mdmobile-second-one-middle-foot-right.active22 {23 animation: suofang 1s forwards;24 -moz-animation: suofang 1s forwards;25 -webkit-animation: suofang 1s forwards;26 }27 .mdmobile-second-one-middle-top-right,28 .mdmobile-second-one-middle-top-left,29 .mdmobile-second-one-middle-middle-one,30 .mdmobile-second-one-middle-middle-two,31 .mdmobile-second-one-middle-middle-three,32 .mdmobile-second-one-middle-foot-left,33 .mdmobile-second-one-middle-foot-right34 {35 transform:scale(0);36 -moz-transform:scale(0);37 -webkit-transform:scale(0);38 }
if(index == 2){ $(".mdmobile-second-one-middle-top-left").addClass("active"); setTimeout(function(){ $(".mdmobile-second-one-middle-top-right").addClass("active"); },100); setTimeout(function(){ $(".mdmobile-second-one-middle-middle-one").addClass("active"); },200); setTimeout(function(){ $(".mdmobile-second-one-middle-middle-two").addClass("active"); },300); setTimeout(function(){ $(".mdmobile-second-one-middle-middle-three").addClass("active"); },400); setTimeout(function(){ $(".mdmobile-second-one-middle-foot-left").addClass("active"); },500); setTimeout(function(){ $(".mdmobile-second-one-middle-foot-right").addClass("active"); },600); }

The article explains that HTML tags are syntax markers used to define elements, while elements are complete units including tags and content. They work together to structure webpages.Character count: 159

The article discusses the roles of <head> and <body> tags in HTML, their impact on user experience, and SEO implications. Proper structuring enhances website functionality and search engine optimization.

The article discusses the differences between HTML tags , , , and , focusing on their semantic vs. presentational uses and their impact on SEO and accessibility.

Article discusses specifying character encoding in HTML, focusing on UTF-8. Main issue: ensuring correct display of text, preventing garbled characters, and enhancing SEO and accessibility.

The article discusses various HTML formatting tags used for structuring and styling web content, emphasizing their effects on text appearance and the importance of semantic tags for accessibility and SEO.

The article discusses the differences between HTML's 'id' and 'class' attributes, focusing on their uniqueness, purpose, CSS syntax, and specificity. It explains how their use impacts webpage styling and functionality, and provides best practices for

The article explains the HTML 'class' attribute's role in grouping elements for styling and JavaScript manipulation, contrasting it with the unique 'id' attribute.

Article discusses HTML list types: ordered (<ol>), unordered (<ul>), and description (<dl>). Focuses on creating and styling lists to enhance website design.


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

MantisBT
Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

EditPlus Chinese cracked version
Small size, syntax highlighting, does not support code prompt function

SublimeText3 Chinese version
Chinese version, very easy to use

ZendStudio 13.5.1 Mac
Powerful PHP integrated development environment

SecLists
SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.
