日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 前端技术 > CSS >内容正文

CSS

html5 css3实现幻灯片效果代码,CSS3实现的渐变幻灯片效果

發布時間:2023/12/29 CSS 34 豆豆
生活随笔 收集整理的這篇文章主要介紹了 html5 css3实现幻灯片效果代码,CSS3实现的渐变幻灯片效果 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

實現效果

代碼

html

CSS3: CSS3 delivers a wide range of stylization and effects, enhancing the web app without sacrificing your semantic structure or performance. Additionally Web Open Font Format (WOFF) provides typographic flexibility and control far beyond anything the web has offered before.

Semantics: Giving meaning to structure, semantics are front and center with HTML5. A richer set of tags, along with RDFa, microdata, and microformats, are enabling a more useful, data driven web for both programs and your users.

Offline & Storage: Web Apps can start faster and work even if there is no internet connection, thanks to the HTML5 App Cache, as well as the Local Storage, Indexed DB, and the File API specifications.

Device Access: Beginning with the Geolocation API, Web Applications can present rich, device-aware features and experiences. Incredible device access innovations are being developed and implemented, from audio/video input access to microphones and cameras, to local data such as contacts & events, and even tilt orientation.

Connectivity: More efficient connectivity means more real-time chats, faster games, and better communication. Web Sockets and Server-Sent Events are pushing (pun intended) data between client and server more efficiently than ever before.

Multimedia: Audio and video are first class citizens in the HTML5 web, living in harmony with your apps and sites. Lights, camera, action!

3D, Graphics & Effects: Between SVG, Canvas, WebGL, and CSS3 3D features, you're sure to amaze your users with stunning visuals natively rendered in the browser.

Performance & Integration: Make your Web Apps and dynamic web content faster with a variety of techniques and technologies such as Web Workers and XMLHttpRequest 2. No user should ever wait on your watch.

Images and captions are from the W3C

css

body{

font-family: "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;

font-weight: 300;

}

.css-slideshow{

position: relative;

max-width: 495px;

height: 370px;

margin: 5em auto .5em auto;

}

.css-slideshow figure{

margin: 0;

max-width: 495px;

height: 370px;

background: #000;

position: absolute;

}

.css-slideshow img{

box-shadow: 0 0 2px #666;

}

.css-slideshow figcaption{

position: absolute;

top: 0;

color: #fff;

background: rgba(0,0,0, .3);

font-size: .8em;

padding: 8px 12px;

opacity: 0;

transition: opacity .5s;

}

.css-slideshow:hover figure figcaption{

transition: opacity .5s;

opacity: 1;

}

.css-slideshow-attr{

max-width: 495px;

text-align: right;

font-size: .7em;

font-style: italic;

margin:0 auto;

}

.css-slideshow-attr a{

color: #666;

}

.css-slideshow figure{

opacity:0;

}

figure:nth-child(1) {

animation: xfade 48s 42s infinite;

}

figure:nth-child(2) {

animation: xfade 48s 36s infinite;

}

figure:nth-child(3) {

animation: xfade 48s 30s infinite;

}

figure:nth-child(4) {

animation: xfade 48s 24s infinite;

}

figure:nth-child(5) {

animation: xfade 48s 18s infinite;

}

figure:nth-child(6) {

animation: xfade 48s 12s infinite;

}

figure:nth-child(7) {

animation: xfade 48s 6s infinite;

}

figure:nth-child(8) {

animation: xfade 48s 0s infinite;

}

@keyframes xfade{

0%{

opacity: 1;

}

10.5% {

opacity: 1;

}

12.5%{

opacity: 0;

}

98% {

opacity: 0;

}

100% {

opacity: 1;

}

}

以上就是CSS3實現的漸變幻燈片效果的詳細內容,更多關于CSS3漸變幻燈片的資料請關注腳本之家其它相關文章!

總結

以上是生活随笔為你收集整理的html5 css3实现幻灯片效果代码,CSS3实现的渐变幻灯片效果的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。