HTML5 leaf falling animation,

Source: Internet
Author: User

HTML5 leaf falling animation,

Use Chrome to view the effect.



Html source code:

Html code
  1. <! Doctype html>
  2. <Html>
  3. <Head>
  4. <Title> HTML5 fallen leaves animation-ke leyi </title> <base target = "_ blank" href = "http://keleyi.com/keleyi/phtml/css3/"/>
  5. <Meta charset = "UTF-8">
  6. <Meta name = "viewport" content = "width = 500px, initial-scale = 0.64">
  7. <Link rel = "apple-touch-icon" href = "http://keleyi.com/keleyi/phtml/css3/15/images/apple-touch-icon.png"/>
  8. <! -- The leaves.css file animates the leaves -->
  9. <Link rel = "stylesheet" href = "http://keleyi.com/keleyi/phtml/css3/15/leaves.css" type = "text/css" media = "screen" charset = "UTF-8">
  10. <Script type = "text/javascript" src = "http://keleyi.com/keleyi/pmedia/jquery/jquery-1.11.2.min.js"> </script>
  11. <! -- The leaves. js file creates the leaves -->
  12. <Script src = "http://keleyi.com/keleyi/phtml/css3/15/leaves.js" type = "text/javascript" charset = "UTF-8"> </script>
  13. </Head>
  14. <Body>
  15. <Div style = "text-align: center; clear: both; margin-top: 0px">
  16. <Span id = "keleyi">
  17. <A href = "http://keleyi.com"> Home </a> <a href = "http://keleyi.com/keleyi/phtml/">
  18. Special Effect Library
  19. </A> <a href = "http://keleyi.com/a/bjae/h1o76nuh.htm"> original </a> View this page in Chrome.
  20. </Span>
  21. </Div>
  22. <Div id = "container">
  23. <! -- The container is dynamically populated using the init function in leaves. js -->
  24. <! -- Its dimensions and position are defined using its id selector in leaves.css -->
  25. <Div id = "leafContainer"> </div>
  26. <! -- Its appearance, dimensions, and position are defined using its id selector in leaves.css -->
  27. <Div id = "message">
  28. <Em> falling Red is not a heartless thing </em>
  29. </Div>
  30. </Div>
  31. </Body>
  32. </Html>

Reprinted from: http://keleyi.com/a/bjae/h1o76nuh.htm

Related Article

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.