


A luminous screen rotation special effect implemented in pure css3_html/css_WEB-ITnose
Today I bring you a luminous screen rotation special effect implemented purely in CSS3. The screen is implemented with luminous rotation special effects by pure CSS3. The rendering is as follows:
Online preview Source code download
The code implemented.
html code:
<div class="screen"> </div>
css3 code:
*{ margin: 0; padding: 0;}*,*:before,*:after { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box;}html,body{ height: 100%;}html{ background-color: #1d1d1d;}body{ position: relative; margin: 0; padding: 0; transform-style: preserve-3d; -webkit-perspective: 500px; perspective: 500px;}/*Screen*/.screen{ position: absolute; top: 50%; left: 50%; width: 320px; height: 210px; margin-top: -105px; margin-left: -160px; border-radius: 8px; box-shadow: 0 0 80px #0caba8; overflow: hidden; z-index: 100000; -webkit-animation: screenMove01 2s, boxShine 2.5s 2s infinite alternate , screenMove02 5s infinite alternate linear; -moz-animation: screenMove01 2s, boxShine 2.5s 2s infinite alternate , screenMove02 5s infinite alternate linear; -o-animation: screenMove01 2s, boxShine 2.5s 2s infinite alternate , screenMove02 5s infinite alternate linear; animation: screenMove01 2s, boxShine 2.5s 2s infinite alternate , screenMove02 5s infinite alternate linear;}.screen::before{ display: block; content:""; position: absolute; top: 0; left: 0; width: 320px; height: 210px; border-width: 5px; border-style: solid; border-image: -webkit-linear-gradient(to bottom, rgba(29,186,180,1) 0%, rgba(126,252,247,1) 26%, rgba(227,253,252,1) 30%, rgba(126,252,247,1) 36%, rgba(29,186,180,1) 52%, rgba(29,186,180,1) 74%, rgba(164,247,244,1) 91%, rgba(29,186,180,1) 100%) 1; border-image: -moz-linear-gradient(to bottom, rgba(29,186,180,1) 0%, rgba(126,252,247,1) 26%, rgba(227,253,252,1) 30%, rgba(126,252,247,1) 36%, rgba(29,186,180,1) 52%, rgba(29,186,180,1) 74%, rgba(164,247,244,1) 91%, rgba(29,186,180,1) 100%) 1; border-image: -o-linear-gradient(to bottom, rgba(29,186,180,1) 0%, rgba(126,252,247,1) 26%, rgba(227,253,252,1) 30%, rgba(126,252,247,1) 36%, rgba(29,186,180,1) 52%, rgba(29,186,180,1) 74%, rgba(164,247,244,1) 91%, rgba(29,186,180,1) 100%) 1; border-image: linear-gradient(to bottom, rgba(29,186,180,1) 0%, rgba(126,252,247,1) 26%, rgba(227,253,252,1) 30%, rgba(126,252,247,1) 36%, rgba(29,186,180,1) 52%, rgba(29,186,180,1) 74%, rgba(164,247,244,1) 91%, rgba(29,186,180,1) 100%) 1; }.screen::after{ display: block; content:""; position: absolute; top: 3px; left: 3px; width: 314px; height: 204px; border: 3px solid #1d1d1d; border-color:rgba(29,29,29,0.9); border-radius: 5px; background: -webkit-linear-gradient( 135deg, rgba(29,186,180,1) 0%, rgba(227,253,252,1) 17%, rgba(227,253,252,1) 25%, rgba(42,197,191,1) 48%, rgba(126,252,247,1) 93%, rgba(29,186,180,1) 100%); background: -moz-linear-gradient( 135deg, rgba(29,186,180,1) 0%, rgba(227,253,252,1) 17%, rgba(227,253,252,1) 25%, rgba(42,197,191,1) 48%, rgba(126,252,247,1) 93%, rgba(29,186,180,1) 100%); background: -o-linear-gradient( 135deg, rgba(29,186,180,1) 0%, rgba(227,253,252,1) 17%, rgba(227,253,252,1) 25%, rgba(42,197,191,1) 48%, rgba(126,252,247,1) 93%, rgba(29,186,180,1) 100%); background: linear-gradient( 135deg, rgba(29,186,180,1) 0%, rgba(227,253,252,1) 17%, rgba(227,253,252,1) 25%, rgba(42,197,191,1) 48%, rgba(126,252,247,1) 93%, rgba(29,186,180,1) 100%); -webkit-background-size: 300% 300%; -moz-background-size: 300% 300%; -o-background-size: 300% 300%; -ms-background-size: 300% 300%; background-size: 300% 300%; -webkit-animation: bgShine 5s infinite alternate linear; -moz-animation: bgShine 5s infinite alternate linear; -o-animation: bgShine 5s infinite alternate linear; animation: bgShine 5s infinite alternate linear;}/**//*Animation*//*screenMove01*/@-webkit-keyframes screenMove01 { 0% {opacity: 0; top: 100%; transform: rotateY(0deg);} 100% {opacity: 1; top: 50%; transform: rotateY(-30deg);}}@-moz-keyframes screenMove01 { 0% {opacity: 0; top: 100%; transform: rotateY(0deg);} 100% {opacity: 1; top: 50%; transform: rotateY(-30deg);}}@-o-keyframes screenMove01 { 0% {opacity: 0; top: 100%; transform: rotateY(0deg);} 100% {opacity: 1; top: 50%; transform: rotateY(-30deg);}}@keyframes screenMove01 { 0% {opacity: 0; top: 100%; transform: rotateY(0deg);} 100% {opacity: 1; top: 50%; transform: rotateY(-30deg);}}/**//*screenMove02*/@-webkit-keyframes screenMove02 { 0% {transform: rotateY(-30deg);} 100% {transform: rotateY(30deg);}}@-moz-keyframes screenMove02 { 0% {transform: rotateY(-30deg);} 100% {transform: rotateY(30deg);}}@-o-keyframes screenMove02 { 0% {transform: rotateY(-30deg);} 100% {transform: rotateY(30deg);}}@keyframes screenMove02 { 0% {transform: rotateY(-30deg);} 100% {transform: rotateY(30deg);}}/**//*box shine*/@-webkit-keyframes boxShine { 0% {box-shadow: 0 0 50px #0caba8;} 100% {box-shadow: 0 0 200px #0caba8;}}@-moz-keyframes boxShine { 0% {box-shadow: 0 0 50px #0caba8;} 100% {box-shadow: 0 0 200px #0caba8;}}@-o-keyframes boxShine { 0% {box-shadow: 0 0 50px #0caba8;} 100% {box-shadow: 0 0 200px #0caba8;}}@keyframes boxShine { 0% {box-shadow: 0 0 50px #0caba8;} 100% {box-shadow: 0 0 200px #0caba8;}}/**//*bg shine*/@-webkit-keyframes bgShine { 0% {-webkit-background-size: 300% 300%;} 100% {-webkit-background-size: 100% 100%;}}@-moz-keyframes bgShine { 0% {-moz-background-size: 300% 300%;} 100% {-moz-background-size: 100% 100%;}}@-o-keyframes bgShine { 0% {-o-background-size: 300% 300%;} 100% {-o-background-size: 100% 100%;}}@keyframes bgShine { 0% {background-size: 300% 300%;} 100% {background-size: 100% 100%;}}

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.

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

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.

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.

The roles of HTML, CSS and JavaScript in web development are: 1. HTML defines the web page structure, 2. CSS controls the web page style, and 3. JavaScript adds dynamic behavior. Together, they build the framework, aesthetics and interactivity of modern websites.

The future of HTML is full of infinite possibilities. 1) New features and standards will include more semantic tags and the popularity of WebComponents. 2) The web design trend will continue to develop towards responsive and accessible design. 3) Performance optimization will improve the user experience through responsive image loading and lazy loading technologies.
