Yesterday was the March 8th Goddess Day. This article mainly shares with you the implementation code of the html5 development confession tool. You can also use it to express your love on this day. Knowledge points used in developing the March 8th Queen's Day Confession Artifact: css33D scenes, 3D transformations, love making skills, 3D cube making skills, custom animations, native js DOM node operations, loops, etc.
The rendering is as follows:
:point_down:html code:
<p> </p> <p> </p><p></p> <p></p> <p></p> <p></p> <p></p> <p></p> <p></p> <p></p> <p></p> <p></p> <p></p> <p></p> <p></p> <p></p> <p></p> <p></p> <p></p> <p></p> <p></p> <p></p> <p></p> <p></p> <p></p> <p></p> <p></p> <p></p> <p></p> <p></p> <p></p> <p></p> <p></p> <p></p> <p></p> <p></p> <p></p> <p></p> <p> </p><p><img src="/static/imghwm/default1.png" data-src="images/1.jpg" class="lazy" alt="HTML5 development confession artifact implementation code" ></p> <p><img src="/static/imghwm/default1.png" data-src="images/2.jpg" class="lazy" alt="HTML5 development confession artifact implementation code" ></p> <p><img src="/static/imghwm/default1.png" data-src="images/3.jpg" class="lazy" alt="HTML5 development confession artifact implementation code" ></p> <p><img src="/static/imghwm/default1.png" data-src="images/4.jpg" class="lazy" alt="HTML5 development confession artifact implementation code" ></p> <p><img src="/static/imghwm/default1.png" data-src="images/5.jpg" class="lazy" alt="HTML5 development confession artifact implementation code" ></p> <p><img src="/static/imghwm/default1.png" data-src="images/6.jpg" class="lazy" alt="HTML5 development confession artifact implementation code" ></p>
:point_down:css code:
<style>/*css样式表的衣柜*/ *{margin:0px;padding:0px;}/*去除默认外边距、内边距*/ body{background:#000;} .heart3d { position: absolute; top: 0; right: 0; bottom: 0; left: 0; margin: auto; width: 100px; height: 160px; transform-origin:center center center; transform-style: preserve-3d; animation: spin 15s infinite linear; } #display{width:200px;color:white;font-size:24px;white-space:normal;text-indent:55px;position:absolute;left:100px;top:100px;} .heart3d [class^="rib"] { position: absolute; width: 100px; height: 160px; border: solid #f22613; border-width: 1px 1px 0 0; border-radius: 50% 50% 0 / 40% 50% 0; } .heart3d [class$="1"] { transform: rotateY(10deg) rotateZ(45deg) translateX(30px); } .heart3d [class$="2"] { transform: rotateY(20deg) rotateZ(45deg) translateX(30px); } .heart3d [class$="3"] { transform: rotateY(30deg) rotateZ(45deg) translateX(30px); } .heart3d [class$="4"] { transform: rotateY(40deg) rotateZ(45deg) translateX(30px); } .heart3d [class$="5"] { transform: rotateY(50deg) rotateZ(45deg) translateX(30px); } .heart3d [class$="6"] { transform: rotateY(60deg) rotateZ(45deg) translateX(30px); } .heart3d [class$="7"] { transform: rotateY(70deg) rotateZ(45deg) translateX(30px); } .heart3d [class$="8"] { transform: rotateY(80deg) rotateZ(45deg) translateX(30px); } .heart3d [class$="9"] { transform: rotateY(90deg) rotateZ(45deg) translateX(30px); } .heart3d [class$="10"] { transform: rotateY(100deg) rotateZ(45deg) translateX(30px); } .heart3d [class$="11"] { transform: rotateY(110deg) rotateZ(45deg) translateX(30px); } .heart3d [class$="12"] { transform: rotateY(120deg) rotateZ(45deg) translateX(30px); } .heart3d [class$="13"] { transform: rotateY(130deg) rotateZ(45deg) translateX(30px); } .heart3d [class$="14"] { transform: rotateY(140deg) rotateZ(45deg) translateX(30px); } .heart3d [class$="15"] { transform: rotateY(150deg) rotateZ(45deg) translateX(30px); } .heart3d [class$="16"] { transform: rotateY(160deg) rotateZ(45deg) translateX(30px); } .heart3d [class$="17"] { transform: rotateY(170deg) rotateZ(45deg) translateX(30px); } .heart3d [class$="18"] { transform: rotateY(180deg) rotateZ(45deg) translateX(30px); } .heart3d [class$="19"] { transform: rotateY(190deg) rotateZ(45deg) translateX(30px); } .heart3d [class$="20"] { transform: rotateY(200deg) rotateZ(45deg) translateX(30px); } .heart3d [class$="21"] { transform: rotateY(210deg) rotateZ(45deg) translateX(30px); } .heart3d [class$="22"] { transform: rotateY(220deg) rotateZ(45deg) translateX(30px); } .heart3d [class$="23"] { -webkit-transform: rotateY(230deg) rotateZ(45deg) translateX(30px); transform: rotateY(230deg) rotateZ(45deg) translateX(30px); } .heart3d [class$="24"] { transform: rotateY(240deg) rotateZ(45deg) translateX(30px); } .heart3d [class$="25"] { transform: rotateY(250deg) rotateZ(45deg) translateX(30px); } .heart3d [class$="26"] { transform: rotateY(260deg) rotateZ(45deg) translateX(30px); } .heart3d [class$="27"] { transform: rotateY(270deg) rotateZ(45deg) translateX(30px); } .heart3d [class$="28"] { transform: rotateY(280deg) rotateZ(45deg) translateX(30px); } .heart3d [class$="29"] { transform: rotateY(290deg) rotateZ(45deg) translateX(30px); } .heart3d [class$="30"] { transform: rotateY(300deg) rotateZ(45deg) translateX(30px); } .heart3d [class$="31"] { transform: rotateY(310deg) rotateZ(45deg) translateX(30px); } .heart3d [class$="32"] { transform: rotateY(320deg) rotateZ(45deg) translateX(30px); } .heart3d [class$="33"] { transform: rotateY(330deg) rotateZ(45deg) translateX(30px); } .heart3d [class$="34"] { transform: rotateY(340deg) rotateZ(45deg) translateX(30px); } .heart3d [class$="35"] { transform: rotateY(350deg) rotateZ(45deg) translateX(30px); } .heart3d [class$="36"] { transform: rotateY(360deg) rotateZ(45deg) translateX(30px); } @keyframes spin { to { transform: rotateY(360deg) rotateX(360deg); } } .per{ width:50px;height:50px;position:absolute;top:0;left:0;right:0;bottom:0; margin:auto;transform-style: preserve-3d;perspective:800px; } .img{width:50px;height:50px;position:absolute;backface-visibility:hidden; } .img:nth-child(1){top:-50px;left:0;transform-origin:bottom; transform:translateZ(30px) rotateX(90deg);} .img:nth-child(2){top:50px;left:0;transform-origin:top; transform:translateZ(30px) rotateX(-90deg);} .img:nth-child(3){top:0px;left:-50px;transform-origin:right; transform:translateZ(30px) rotateY(-90deg);} .img:nth-child(4){top:0px;left:50px;transform-origin:left; transform:translateZ(30px) rotateY(90deg);} .img:nth-child(6){top:0px;left:0;transform:translateZ(30px);} .img:nth-child(5){top:0px;left:0;transform:translateZ(0px);} </style>
:point_down:javascript code:
<script> var i = 0; var str1 = "对于一个网页制作者来说,对HTML语言一定不会感到陌生,因为HTML语言是所有网页制作的基础。但是如果页面能够方便网友们的使用,友好而大方,甚至像桌面应用程序一样,那么仅仅依靠HTML语言是不够的,JavaScript在这其中扮演着重要的角色。"; var str ="如果,爱一个人,守一份爱情,可以在早春一起去踏青,可以在盛夏一起去赏荷,可以在浅秋一起去观月,可以在深冬一起去寻梅,不厌倦,却欢乐,不平凡,却平淡。那么,此生便无憾了。"; window.onload = function typing(){ var myp = document.getElementById("display"); myp.innerHTML += str.charAt(i); var oBtn = document.getElementById('btn'); i++; var id = setTimeout(typing,100); if(i==str.length){ clearTimeout(id); myp.value =""; myp.innerHTML +="" //alert("程序执行完毕!"); } } </script>
Related recommendations:
Programmer’s Confession Artifact "520" Shout out loud, 520 shout out_PHP tutorial
How to use html to create a confession page
Romantic Programmer: Valentine’s Day Beautiful Confession Code
The above is the detailed content of HTML5 development confession artifact implementation code. For more information, please follow other related articles on the PHP Chinese website!

H5 brings a number of new functions and capabilities, greatly improving the interactivity and development efficiency of web pages. 1. Semantic tags such as enhance SEO. 2. Multimedia support simplifies audio and video playback through and tags. 3. Canvas drawing provides dynamic graphics drawing tools. 4. Local storage simplifies data storage through localStorage and sessionStorage. 5. The geolocation API facilitates the development of location-based services.

HTML5 brings five key improvements: 1. Semantic tags improve code clarity and SEO effects; 2. Multimedia support simplifies video and audio embedding; 3. Form enhancement simplifies verification; 4. Offline and local storage improves user experience; 5. Canvas and graphics functions enhance the visualization of web pages.

The core features of HTML5 include semantic tags, multimedia support, offline storage and local storage, and form enhancement. 1. Semantic tags such as, etc. to improve code readability and SEO effect. 2. Simplify multimedia embedding with labels. 3. Offline storage and local storage such as ApplicationCache and LocalStorage support network-free operation and data storage. 4. Form enhancement introduces new input types and verification properties to simplify processing and verification.

H5 provides a variety of new features and functions, greatly enhancing the capabilities of front-end development. 1. Multimedia support: embed media through and elements, no plug-ins are required. 2. Canvas: Use elements to dynamically render 2D graphics and animations. 3. Local storage: implement persistent data storage through localStorage and sessionStorage to improve user experience.

H5 and HTML5 are different concepts: HTML5 is a version of HTML, containing new elements and APIs; H5 is a mobile application development framework based on HTML5. HTML5 parses and renders code through the browser, while H5 applications need to run containers and interact with native code through JavaScript.

Key elements of HTML5 include,,,,,, etc., which are used to build modern web pages. 1. Define the head content, 2. Used to navigate the link, 3. Represent the content of independent articles, 4. Organize the page content, 5. Display the sidebar content, 6. Define the footer, these elements enhance the structure and functionality of the web page.

There is no difference between HTML5 and H5, which is the abbreviation of HTML5. 1.HTML5 is the fifth version of HTML, which enhances the multimedia and interactive functions of web pages. 2.H5 is often used to refer to HTML5-based mobile web pages or applications, and is suitable for various mobile devices.

HTML5 is the latest version of the Hypertext Markup Language, standardized by W3C. HTML5 introduces new semantic tags, multimedia support and form enhancements, improving web structure, user experience and SEO effects. HTML5 introduces new semantic tags, such as, ,, etc., to make the web page structure clearer and the SEO effect better. HTML5 supports multimedia elements and no third-party plug-ins are required, improving user experience and loading speed. HTML5 enhances form functions and introduces new input types such as, etc., which improves user experience and form verification efficiency.


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

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

mPDF
mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

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

Dreamweaver Mac version
Visual web development tools

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