


Based on CSS3 3D blinds image transition effects_html/css_WEB-ITnose
You may have seen many blind effects made using jQuery on the Internet. Can we use pure CSS to complete this work? The answer is yes. Not only can we make this blinds effect, we can also make it responsive.
Online preview Source code download
To create pure CSS blinds effect, HTML structure is the key. In the HTML structure, multiple identical pictures need to be used to organize a "blind". To make 10 blinds in our demo, we need 10 identical and place them in a
<figure id="blinds"> <img src="autumn-face.jpg" alt class="first"> <img src="autumn-face.jpg" alt class="first"> … <img src="autumn-face.jpg" alt class="first"> <img src="julia.jpg" alt class="second"> <img src="julia.jpg" alt class="second"> … <img src="julia.jpg" alt class="second"></figure>
At this time, all the blind slices will be rotated at the same time. To create the "pulsating" effect of the blinds, you can set a delay time for each slice's transition.
#blinds img:nth-child(1), #blinds img:nth-child(11) { clip: rect(0px, 100px, 840px, 0px); transform-origin: 50px 0px; }#blinds img:nth-child(2), #blinds img:nth-child(12) { clip: rect(0px, 200px, 840px, 100px); transform-origin: 150px 0px; transition-delay: 100ms; }#blinds img:nth-child(3), #blinds img:nth-child(13) { clip: rect(0px, 300px, 840px, 200px); transform-origin: 250px 0px; transition-delay: 200ms; }…#blinds img:nth-child(10n) { clip: rect(0px, 1000px, 840px, 900px); transform-origin: 950px 0px; transition-delay: 900ms; }
One of the biggest benefits of using the clip attribute is that it is naturally responsive: if the image is reduced, all slices will be reduced accordingly. Check out the demo and try zooming out your browser. When the width of the browser is less than 500 pixels, the image blinds only have 5 slices.
via: http://www.w2bc.com/Article/25379

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.

AnexampleofastartingtaginHTMLis,whichbeginsaparagraph.StartingtagsareessentialinHTMLastheyinitiateelements,definetheirtypes,andarecrucialforstructuringwebpagesandconstructingtheDOM.

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

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

The Y-axis position adaptive algorithm for web annotation function This article will explore how to implement annotation functions similar to Word documents, especially how to deal with the interval between annotations...

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...

The necessity of registering VueRouter in the index.js file under the router folder When developing Vue applications, you often encounter problems with routing configuration. Special...
