This article will introduce to you the necessary page to use jQuery CSS to realize romantic confession. It has certain reference value. Friends in need can refer to it. I hope it will be helpful to everyone.
JQ CSS necessary page to realize romantic confession
Rendering:
Picture material:
<!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>浪漫表白 By:阿杜</title> <style type = "text/css"> *{ margin:0px; padding:0px; } html,body{ height:100%; } body{ font-family:"微软雅黑"; <!-- 此处需要自己修改图片路径 --> background:url(images/b1j.jpg) no-repeat fixed; background-size:cover; } .top{ width:500px; height:150px; margin:50px auto; font-size:30px; color:#ea544d; } .box{ width:310px; height:310px; margin:0px auto; perspective:800px; margin-top:-40px; } .box .wrap{ width:210px; height:210px; position:relative; transform-style:preserve-3d; animation:play 10s linear infinite; } .box .wrap ul li{ list-style:none; position:absolute; top:0;left:0; } @keyframes play{ from{transform:rotateY(0deg);} to{transform:rotateY(360deg);} } .xin,.xin1{ position:absolute; } .xin{ animation:xin 8s linear infinite; } @keyframes xin{ 0%{top:0%;left:50%;opacity:1;} 20%{top:20%;left:80%;opacity:0;} 40%{top:50%;left:50%;opacity:1;} 60%{top:80%;left:40%;opacity:0;} 80%{top:50%;left:20%;opacity:1;} 100%{top:10%;left:0%;opacity:0;} } .xin1{ animation:xin 15s linear infinite; } @keyframes xin1{ 0%{top:10%;right:50%;opacity:1;} 20%{top:50%;right:80%;opacity:0;} 40%{top:40%;right:50%;opacity:1;} 60%{top:60%;right:40%;opacity:0;} 80%{top:50%;right:20%;opacity:1;} 100%{top:0%;right:0%;opacity:0;} } .text{ width:60%; margin:0 auto; margin-top:-60px; font-size:20px; line-height:30px; font-weight:500; animation:color 10s linear infinite; } @keyframes color{ 0%{color:#039;} 20%{color:#9C3;} 40%{color:#6C6;} 60%{color:#66F;} 80%{color:#FC9;} 100%{color:#9FF;} } </style> </head> <body> <!--S top--> <div class = "top"> <marquee behavior="alternate">Love Page By:阿杜</marquee> </div> <!--E top--> <!--S box--> <div class = "box"> <div class = "wrap"> <!-- 此处需要自己修改图片路径 --> <ul> <li><img src="/static/imghwm/default1.png" data-src="images/1.gif" class="lazy" height="210px" style="max-width:90%"/ alt="jQuery + CSS realizes romantic confession! (with code)" ></li> <li><img src="/static/imghwm/default1.png" data-src="images/2.gif" class="lazy" height="210px" style="max-width:90%"/ alt="jQuery + CSS realizes romantic confession! (with code)" ></li> <li><img src="/static/imghwm/default1.png" data-src="images/3.gif" class="lazy" height="210px" style="max-width:90%"/ alt="jQuery + CSS realizes romantic confession! (with code)" ></li> <li><img src="/static/imghwm/default1.png" data-src="images/4.gif" class="lazy" height="210px" style="max-width:90%"/ alt="jQuery + CSS realizes romantic confession! (with code)" ></li> <li><img src="/static/imghwm/default1.png" data-src="images/5.gif" class="lazy" height="210px" style="max-width:90%"/ alt="jQuery + CSS realizes romantic confession! (with code)" ></li> <li><img src="/static/imghwm/default1.png" data-src="images/6.gif" class="lazy" height="210px" style="max-width:90%"/ alt="jQuery + CSS realizes romantic confession! (with code)" ></li> </ul> </div> </div> <!--E box -此处需要自己修改图片路径--> <div class = "xin"> <img src="/static/imghwm/default1.png" data-src="images/xin.png" class="lazy" style="max-width:90%" height="100px"/ alt="jQuery + CSS realizes romantic confession! (with code)" > </div> <div class = "xin1"> <img src="/static/imghwm/default1.png" data-src="images/xin.png" class="lazy" style="max-width:90%" height="100px"/ alt="jQuery + CSS realizes romantic confession! (with code)" > </div> <div class = "text"> <p id = "test"></p> </div> <!-- 此处需要自己修改音频路径 --> <embed src="sound/bg.mp3" hidden="true"/> <!-- 此处需要自己修改JQ路径 --> <script type = "text/javascript" src="js/jquery.min.js"></script> <script type = "text/javascript"> $(function(){ $(".wrap ul li").each(function(i){ var Deg = 360/$(".wrap ul li").size(); $(this).css({ "transform":"rotateY("+Deg*i+"deg) translateZ(220px)" }); }); }); window.onload = function autoplay(){ var b = ['能够遇见你,对我来说是最大的幸福。有了你,我的生活变的无限宽广,有了你,世界变得如此迷人。你是世界,世界是你。我愿意用自己的心,好好的陪着你,爱着你。陪你到你想去的地方,用心走完我们人生的余下的旅程。在未来的日子里,也许什么都无法确定,但唯一可以确定的是,我爱的人是你,无论现在还是将来,我想我这里都会是你最温暖的港湾,都是为你遮风避雨的城墙。无论狂风,无论暴雨。我都会陪在你的身旁,让你不会感到丝毫的担心和惶恐。我会珍惜和你在一起的每一刻,每一分,每一秒。谁叫你是我最爱的人,谁叫你是第二幸福的人(因为爱上她你是最幸福的了,哈哈)。为了你,我愿用自己的双手为你撑起一片艳阳!']; // 分隔字符串 var str = b.join(""),i=0,arr = str.split(''); var ms_stop = setInterval(function(){ // 设置自动出现文字 if(i>str.length-1){ i = 0; document.getElementById('test').innerHTML=''; } document.getElementById('test').innerHTML=document.getElementById('test').innerHTML+arr[i]; i++; },200); } </script> </body> </html>If you have better ideas or more functions, you can share them with us. If there are any errors, please contact me Correction, thank you very much! ! ! More cool CSS3, html5, javascript, jQuery special effects codes, all in:
The above is the detailed content of jQuery + CSS realizes romantic confession! (with code). For more information, please follow other related articles on the PHP Chinese website!

The main uses of JavaScript in web development include client interaction, form verification and asynchronous communication. 1) Dynamic content update and user interaction through DOM operations; 2) Client verification is carried out before the user submits data to improve the user experience; 3) Refreshless communication with the server is achieved through AJAX technology.

Understanding how JavaScript engine works internally is important to developers because it helps write more efficient code and understand performance bottlenecks and optimization strategies. 1) The engine's workflow includes three stages: parsing, compiling and execution; 2) During the execution process, the engine will perform dynamic optimization, such as inline cache and hidden classes; 3) Best practices include avoiding global variables, optimizing loops, using const and lets, and avoiding excessive use of closures.

Python is more suitable for beginners, with a smooth learning curve and concise syntax; JavaScript is suitable for front-end development, with a steep learning curve and flexible syntax. 1. Python syntax is intuitive and suitable for data science and back-end development. 2. JavaScript is flexible and widely used in front-end and server-side programming.

Python and JavaScript have their own advantages and disadvantages in terms of community, libraries and resources. 1) The Python community is friendly and suitable for beginners, but the front-end development resources are not as rich as JavaScript. 2) Python is powerful in data science and machine learning libraries, while JavaScript is better in front-end development libraries and frameworks. 3) Both have rich learning resources, but Python is suitable for starting with official documents, while JavaScript is better with MDNWebDocs. The choice should be based on project needs and personal interests.

The shift from C/C to JavaScript requires adapting to dynamic typing, garbage collection and asynchronous programming. 1) C/C is a statically typed language that requires manual memory management, while JavaScript is dynamically typed and garbage collection is automatically processed. 2) C/C needs to be compiled into machine code, while JavaScript is an interpreted language. 3) JavaScript introduces concepts such as closures, prototype chains and Promise, which enhances flexibility and asynchronous programming capabilities.

Different JavaScript engines have different effects when parsing and executing JavaScript code, because the implementation principles and optimization strategies of each engine differ. 1. Lexical analysis: convert source code into lexical unit. 2. Grammar analysis: Generate an abstract syntax tree. 3. Optimization and compilation: Generate machine code through the JIT compiler. 4. Execute: Run the machine code. V8 engine optimizes through instant compilation and hidden class, SpiderMonkey uses a type inference system, resulting in different performance performance on the same code.

JavaScript's applications in the real world include server-side programming, mobile application development and Internet of Things control: 1. Server-side programming is realized through Node.js, suitable for high concurrent request processing. 2. Mobile application development is carried out through ReactNative and supports cross-platform deployment. 3. Used for IoT device control through Johnny-Five library, suitable for hardware interaction.

I built a functional multi-tenant SaaS application (an EdTech app) with your everyday tech tool and you can do the same. First, what’s a multi-tenant SaaS application? Multi-tenant SaaS applications let you serve multiple customers from a sing


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

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Safe Exam Browser
Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.

WebStorm Mac version
Useful JavaScript development tools

SAP NetWeaver Server Adapter for Eclipse
Integrate Eclipse with SAP NetWeaver application server.

MinGW - Minimalist GNU for Windows
This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

Atom editor mac version download
The most popular open source editor