


Cross-platform mobile development Xuijs ultra-lightweight framework Emile CSS animation_html/css_WEB-ITnose
Xuijs ultra-lightweight framework Emile CSS animation renderings
Sample code
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>XuijsDemo</title><script src="content/scripts/xui-2.2.0.min.js"></script><script src="content/scripts/emile.js"></script><script>function initialise(){}//style 样式处理function styleshow(){ }//style 动画、形变、渐变function fx(){ emile('box1', 'background:#008FFF;left:100px;padding-bottom:100px;opacity:1', { duration: 4000, easing: bounce }); emile('box2', 'background:#C8E919;left:200px;padding-bottom:100px;opacity:1', { duration: 4000, easing: bounce }); emile('box3', 'background:#AC193D;left:300px;top:400px;padding-bottom:100px;opacity:1', { duration: 4000, easing: bounce }); emile('box4', 'background:#008FFF;right:400px;padding-bottom:100px;opacity:1', { duration: 4000, easing: bounce }); emile('box5', 'background:#C8E919;right:150px;padding-bottom:100px;opacity:1', { duration: 4000, easing: bounce }); emile('box6', 'background:#AC193D;right:350px;top:200px;padding-bottom:100px;opacity:1', { duration: 4000, easing: bounce }); emile('boxb', 'left:500px;padding:10px;border:50px solid #5133AB', { duration: 500, after: function(){ emile('boxa', 'background:#D24726;left:100px;padding-bottom:100px;opacity:1', { duration: 4000, easing: bounce }); } });}function bounce(pos) { if (pos < (1/2.75)) { return (7.5625*pos*pos); } else if (pos < (2/2.75)) { return (7.5625*(pos-=(1.5/2.75))*pos + .75); } else if (pos < (2.5/2.75)) { return (7.5625*(pos-=(2.25/2.75))*pos + .9375); } else { return (7.5625*(pos-=(2.625/2.75))*pos + .984375); } }</script></head><body onload="initialise();styleshow();fx();"><div id="box1" style="position:absolute;left:0px;background:#f00;opacity:0">DIV动画区域块</div><div id="box2" style="border:0px solid #00ff00;position:absolute;left:0px;top:200px;background:#000000">DIV动画区域块</div><div id="box3" style="border:0px solid #AC193D;position:absolute;left:0px;top:300px;background:#AC193D">DIV动画区域块</div><div id="box4" style="position:absolute;right:0px;background:#f00;opacity:0">DIV动画区域块</div><div id="box5" style="border:0px solid #00ff00;position:absolute;right:0px;top:200px;background:#000000">DIV动画区域块</div><div id="box6" style="border:0px solid #AC193D;position:absolute;right:0px;top:150px;background:#AC193D">DIV动画区域块</div><div id="boxa" style="position:absolute;left:0px;background:#D24726;opacity:0">DIV</div><div id="boxb" style="border:0px solid #00ff00;position:absolute;left:0px;top:350px;background:#362168">DIV动画区域块</div></body></html>
Code sample package
Click to download
Statement: This blog attaches great importance to the protection of intellectual property rights. If you find that the information published on this blog contains link content that infringes your copyright, please contact me and I will handle it as soon as possible. Contact email ffgign@qq.com.
Author: Mark Fan (小 Thought) Source: http://cube.cnblogs.com
Note: Without the consent of the author, it is necessary Keep this statement and provide a link to the original text in an obvious position on the article page. Otherwise, we reserve the right to pursue legal liability. If you have any questions, you can contact the author at ffgign@qq.com. This article is licensed under the Creative Commons Attribution-Noncommercial-ShareAlike 2.5 Mainland China License

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

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

HTML is suitable for beginners because it is simple and easy to learn and can quickly see results. 1) The learning curve of HTML is smooth and easy to get started. 2) Just master the basic tags to start creating web pages. 3) High flexibility and can be used in combination with CSS and JavaScript. 4) Rich learning resources and modern tools support the learning process.

HTML defines the web structure, CSS is responsible for style and layout, and JavaScript gives dynamic interaction. The three perform their duties in web development and jointly build a colorful website.

WebdevelopmentreliesonHTML,CSS,andJavaScript:1)HTMLstructurescontent,2)CSSstylesit,and3)JavaScriptaddsinteractivity,formingthebasisofmodernwebexperiences.

GiteePages static website deployment failed: 404 error troubleshooting and resolution when using Gitee...

AnexampleofastartingtaginHTMLis,whichbeginsaparagraph.StartingtagsareessentialinHTMLastheyinitiateelements,definetheirtypes,andarecrucialforstructuringwebpagesandconstructingtheDOM.

To achieve the effect of scattering and enlarging the surrounding images after clicking on the image, many web designs need to achieve an interactive effect: click on a certain image to make the surrounding...

HTML, CSS and JavaScript are the three pillars of web development. 1. HTML defines the web page structure and uses tags such as, etc. 2. CSS controls the web page style, using selectors and attributes such as color, font-size, etc. 3. JavaScript realizes dynamic effects and interaction, through event monitoring and DOM operations.

How to distinguish between closing tabs and closing entire browser using JavaScript on your browser? During the daily use of the browser, users may...
