This time I will teach you how to use CSS3 to make a slide transition. Animation effect. The slide transition animation effect can be used in many situations. Today I will give you a slideshow. Operation cases of switching animation effects
<!DOCTYPE html>
<html >
<head>
<meta charset="UTF-8">
<title>html5 幻灯片切换动画</title>
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<div>
<!-- slider start -->
<div class="fnc-slider example-slider">
<div>
<!-- slide start -->
<div class="fnc-slide m--blend-green m--active-slide">
<div>
<div>
<div></div>
</div>
<div>
<h2>
<div>
<span>Black</span>
</div>
<div>
<span>Widow</span>
</div>
</h2>
<button type="button">
Credits
<span data-text="Credits">Credits</span>
</button>
</div>
</div>
</div>
<!-- slide end -->
<!-- slide start -->
<div class="fnc-slide m--blend-dark">
<div>
<div>
<div></div>
</div>
<div>
<h2>
<div>
<span>Captain</span>
</div>
<div>
<span>America</span>
</div>
</h2>
<button type="button">
Credits
<span data-text="Credits">Credits</span>
</button>
</div>
</div>
</div>
<!-- slide end -->
<!-- slide start -->
<div class="fnc-slide m--blend-red">
<div>
<div>
<div></div>
</div>
<div>
<h2>
<div>
<span>Iron</span>
</div>
<div>
<span>Man</span>
</div>
</h2>
<button type="button">
Credits
<span data-text="Credits">Credits</span>
</button>
</div>
</div>
</div>
<!-- slide end -->
<!-- slide start -->
<div class="fnc-slide m--blend-blue">
<div>
<div>
<div></div>
</div>
<div>
<h2>
<div>
<span>Thor</span>
</div>
<div>
<span>Just Thor</span>
</div>
</h2>
<button type="button">
Credits
<span data-text="Credits">Credits</span>
</button>
</div>
</div>
</div>
<!-- slide end -->
</div>
<nav>
<div>
<div class="fnc-navbg m--navbg-green m--active-nav-bg"></div>
<div class="fnc-navbg m--navbg-dark"></div>
<div class="fnc-navbg m--navbg-red"></div>
<div class="fnc-navbg m--navbg-blue"></div>
</div>
<div>
<button>
Black Widow
<span></span>
</button>
<button>
Captain America
<span></span>
</button>
<button>
Iron Man
<span></span>
</button>
<button>
Thor
<span></span>
</button>
</div>
</nav>
</div>
<!-- slider end -->
<div>
<div></div>
<h2 id="Made-nbsp-by">Made by</h2>
<img src="/static/imghwm/default1.png" data-src="//s3-us-west-2.amazonaws.com/s.cdpn.io/142996/profile/profile-512_5.jpg" class="lazy" alt="" />
<h3 id="Nikolay-nbsp-Talanov">Nikolay Talanov</h3>
<a href="http://codepen.io/suez/" target="_blank">My codepen</a>
<a href="https://twitter.com/NikolayTalanov" target="_blank">My twitter</a>
<h2 id="Based-nbsp-on">Based on</h2>
<a href="https://dribbble.com/shots/2375246-Fashion-Butique-slider-animation" target="_blank">Concept by Kreativa Studio</a>
<h4 id="Global-nbsp-Blend-nbsp-Mode">Global Blend Mode</h4>
<div>
<input type="checkbox" class="colorful-switchcheckbox js-activate-global-blending" id="colorful-switch-cb" />
<label for="colorful-switch-cb">
<span></span>
<span></span>
<span>
<span></span>
</span>
<span></span>
</label>
</div>
</div>
</div>
<script src="js/index.js"></script>
</body>
</html>There are so many cases of switching animation effects of slides. I believe everyone will learn something after reading it. For more exciting information, please pay attention to other related articles on the PHP Chinese website!
Related reading:
How to create the effect of closing and opening doors in CSS3
How to use Css3 animation properties
The above is the detailed content of How to create slide switching animation effect in css3. For more information, please follow other related articles on the PHP Chinese website!
Preloading Pages Just Before They are NeededApr 16, 2025 am 09:53 AMThe typical journey for a person browsing a website: view a page, click a link, browser loads new page. That's assuming no funny business like a Single Page
Adaptive Photo Layout with FlexboxApr 16, 2025 am 09:51 AMLet’s take a look at a super lightweight way to create a horizontal masonry effect for a set of arbitrarily-sized photos. Throw any set of photos at it, and
The Many Ways to Link Up Shapes and Images with HTML and CSSApr 16, 2025 am 09:45 AMDifferent website designs often call for a shape other than a square or rectangle to respond to a click event. Perhaps your site has some kind of tilted or
Web Developer Search HistoryApr 16, 2025 am 09:41 AMSophie Koonin blogged "Everything I googled in a week as a professional software engineer," which was a fascinating look into the mind of a web developer and
What happens when you open a new install of browsers for the 1st time?Apr 16, 2025 am 09:29 AMInteresting research from Jonathan Sampson, where he watches the network requests a browser makes the very first time you launch it on a fresh install, and
Web Development Merit BadgesApr 16, 2025 am 09:26 AMA collection of front-end development achievements. How many can you collect?
Clipping, Clipping, and More Clipping!Apr 16, 2025 am 09:22 AMThere are so many things you can do with clipping paths. I've been exploring them for quite some time and have come up with different techniques and use cases


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

Dreamweaver Mac version
Visual web development tools

PhpStorm Mac version
The latest (2018.2.1) professional PHP integrated development tool

SublimeText3 English version
Recommended: Win version, supports code prompts!

DVWA
Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software

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),








