亚洲乱码中文字幕综合,中国熟女仑乱hd,亚洲精品乱拍国产一区二区三区,一本大道卡一卡二卡三乱码全集资源,又粗又黄又硬又爽的免费视频

css3實(shí)例教程 一款純css3實(shí)現(xiàn)的發(fā)光屏幕旋轉(zhuǎn)特效

  發(fā)布時(shí)間:2014-12-07 15:43:04   作者:佚名   我要評(píng)論
今天給大家?guī)硪豢罴僣ss3實(shí)現(xiàn)的發(fā)光屏幕旋轉(zhuǎn)特效。該屏幕由純css3實(shí)現(xiàn)帶發(fā)光旋轉(zhuǎn)特效,有具體的代碼,感興趣的朋友可以參考下

  今天給大家?guī)硪豢罴僣ss3實(shí)現(xiàn)的發(fā)光屏幕旋轉(zhuǎn)特效。該屏幕由純css3實(shí)現(xiàn)帶發(fā)光旋轉(zhuǎn)特效,效果圖如下:

  實(shí)現(xiàn)的代碼。

  html代碼:

XML/HTML Code復(fù)制內(nèi)容到剪貼板
  1. <div class="screen">  
  2.     </div>  

  css3代碼:

CSS Code復(fù)制內(nèi)容到剪貼板
  1. *{   
  2.     margin: 0;   
  3.     padding: 0;   
  4. }   
  5. *,   
  6. *:before,   
  7. *:after {   
  8.   -webkit-box-sizing: border-box;   
  9.      -moz-box-sizing: border-box;   
  10.           box-sizing: border-box;   
  11. }   
  12. html,body{   
  13.     height: 100%;   
  14. }   
  15. html{   
  16.     background-color#1d1d1d;   
  17. }   
  18. body{   
  19.     positionrelative;   
  20.     margin: 0;   
  21.     padding: 0;   
  22.   transform-style: preserve-3d;   
  23.   
  24.   -webkit-perspective: 500px;   
  25.           perspective: 500px;   
  26. }   
  27.   
  28. /*Screen*/  
  29. .screen{   
  30.     positionabsolute;   
  31.     top: 50%;   
  32.     left: 50%;     
  33.     width320px;   
  34.     height210px;   
  35.     margin-top: -105px;   
  36.     margin-left: -160px;   
  37.   
  38.     border-radius: 8px;   
  39.     box-shadow: 0 0 80px #0caba8;   
  40.     overflowhidden;   
  41.     z-index: 100000;   
  42.   
  43.     -webkit-animation: screenMove01 2s,   
  44.                        boxShine     2.5s 2s infinite alternate ,   
  45.                        screenMove02 5s infinite alternate linear;   
  46.   
  47.        -moz-animation: screenMove01 2s,   
  48.                        boxShine     2.5s 2s infinite alternate ,   
  49.                        screenMove02 5s infinite alternate linear;   
  50.   
  51.          -o-animation: screenMove01 2s,   
  52.                        boxShine     2.5s 2s infinite alternate ,   
  53.                        screenMove02 5s infinite alternate linear;   
  54.   
  55.             animation: screenMove01 2s,   
  56.                        boxShine     2.5s 2s infinite alternate ,   
  57.                        screenMove02 5s infinite alternate linear;   
  58. }   
  59. .screen::before{   
  60.     displayblock;   
  61.     content:"";   
  62.     positionabsolute;   
  63.     top: 0;   
  64.     left: 0;   
  65.     width320px;   
  66.     height210px;   
  67.   
  68.     border-width5px;   
  69.     border-stylesolid;   
  70.   border-image: -webkit-linear-gradient(to bottombottom, 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;    
  71.   border-image:    -moz-linear-gradient(to bottombottom, 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;    
  72.   border-image:      -o-linear-gradient(to bottombottom, 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;    
  73.   border-image:         linear-gradient(to bottombottom, 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;    
  74. }   
  75. .screen::after{   
  76.     displayblock;   
  77.     content:"";   
  78.     positionabsolute;   
  79.     top3px;   
  80.     left3px;   
  81.     width314px;   
  82.     height204px;   
  83.   
  84.     border3px solid #1d1d1d;   
  85.     border-color:rgba(29,29,29,0.9);   
  86.     border-radius: 5px;   
  87.     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%);   
  88.   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%);   
  89.   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%);   
  90.   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%);   
  91.   
  92.   
  93.     -webkit-background-size: 300% 300%;   
  94.      -moz-background-size: 300% 300%;   
  95.          -o-background-size: 300% 300%;   
  96.       -ms-background-size: 300% 300%;   
  97.             background-size: 300% 300%;   
  98.   
  99.   
  100.     -webkit-animation: bgShine 5s  infinite alternate linear;   
  101.        -moz-animation: bgShine 5s  infinite alternate linear;   
  102.            -o-animation: bgShine 5s  infinite alternate linear;   
  103.               animation: bgShine 5s  infinite alternate linear;   
  104. }   
  105. /**/  
  106.   
  107.   
  108.   
  109. /*Animation*/  
  110.   
  111. /*screenMove01*/  
  112. @-webkit-keyframes screenMove01 {   
  113.     0%   {opacity: 0; top: 100%; transform: rotateY(0deg);}   
  114.     100% {opacity: 1; top: 50%;  transform: rotateY(-30deg);}   
  115. }   
  116. @-moz-keyframes screenMove01 {   
  117.     0%   {opacity: 0; top: 100%; transform: rotateY(0deg);}   
  118.     100% {opacity: 1; top: 50%;  transform: rotateY(-30deg);}   
  119. }   
  120. @-o-keyframes screenMove01 {   
  121.     0%   {opacity: 0; top: 100%; transform: rotateY(0deg);}   
  122.     100% {opacity: 1; top: 50%;  transform: rotateY(-30deg);}   
  123. }   
  124. @keyframes screenMove01 {   
  125.     0%   {opacity: 0; top: 100%; transform: rotateY(0deg);}   
  126.     100% {opacity: 1; top: 50%;  transform: rotateY(-30deg);}   
  127. }   
  128. /**/  
  129.   
  130.   
  131.   
  132. /*screenMove02*/  
  133. @-webkit-keyframes screenMove02 {   
  134.     0%   {transform: rotateY(-30deg);}   
  135.     100% {transform: rotateY(30deg);}   
  136. }   
  137. @-moz-keyframes screenMove02 {   
  138.     0%   {transform: rotateY(-30deg);}   
  139.     100% {transform: rotateY(30deg);}   
  140. }   
  141. @-o-keyframes screenMove02 {   
  142.     0%   {transform: rotateY(-30deg);}   
  143.     100% {transform: rotateY(30deg);}   
  144. }   
  145. @keyframes screenMove02 {   
  146.     0%   {transform: rotateY(-30deg);}   
  147.     100% {transform: rotateY(30deg);}   
  148. }   
  149. /**/  
  150.   
  151.   
  152.   
  153. /*box shine*/  
  154. @-webkit-keyframes boxShine {   
  155.     0%   {box-shadow: 0 0 50px #0caba8;}   
  156.     100% {box-shadow: 0 0 200px #0caba8;}   
  157. }   
  158. @-moz-keyframes boxShine {   
  159.     0%   {box-shadow: 0 0 50px #0caba8;}   
  160.     100% {box-shadow: 0 0 200px #0caba8;}   
  161. }   
  162. @-o-keyframes boxShine {   
  163.     0%   {box-shadow: 0 0 50px #0caba8;}   
  164.     100% {box-shadow: 0 0 200px #0caba8;}   
  165. }   
  166. @keyframes boxShine {   
  167.     0%   {box-shadow: 0 0 50px #0caba8;}   
  168.     100% {box-shadow: 0 0 200px #0caba8;}   
  169. }   
  170. /**/  
  171.   
  172.   
  173.   
  174. /*bg shine*/  
  175. @-webkit-keyframes bgShine {   
  176.     0%   {-webkit-background-size: 300% 300%;}   
  177.     100% {-webkit-background-size: 100% 100%;}   
  178. }   
  179. @-moz-keyframes bgShine {   
  180.     0%   {-moz-background-size: 300% 300%;}   
  181.     100% {-moz-background-size: 100% 100%;}   
  182. }   
  183. @-o-keyframes bgShine {   
  184.     0%   {-o-background-size: 300% 300%;}   
  185.     100% {-o-background-size: 100% 100%;}   
  186. }   
  187. @keyframes bgShine {   
  188.     0%   {background-size: 300% 300%;}   
  189.     100% {background-size: 100% 100%;}   
  190.  

相關(guān)文章

  • CSS3 最強(qiáng)二維布局系統(tǒng)之Grid 網(wǎng)格布局

    CS3的Grid網(wǎng)格布局是目前最強(qiáng)的二維布局系統(tǒng),可以同時(shí)對(duì)列和行進(jìn)行處理,將網(wǎng)頁劃分成一個(gè)個(gè)網(wǎng)格,可以任意組合不同的網(wǎng)格,做出各種各樣的布局,本文介紹CSS3 最強(qiáng)二維布局系
    2025-02-27
  • 如何使用CSS3實(shí)現(xiàn)波浪式圖片墻

    本文介紹了如何使用CSS3的transform屬性和動(dòng)畫技巧實(shí)現(xiàn)波浪式圖片墻,通過設(shè)置圖片的垂直偏移量,并使用動(dòng)畫使其周期性地改變位置,可以創(chuàng)建出動(dòng)態(tài)且具有波浪效果的圖片墻,同
    2025-02-27
  • CSS3模擬實(shí)現(xiàn)一個(gè)雷達(dá)探測(cè)掃描動(dòng)畫特效(最新推薦)

    文章介紹了如何使用CSS3實(shí)現(xiàn)一個(gè)雷達(dá)探測(cè)掃描的效果,包括夜色背景、蜘蛛網(wǎng)盤、掃描體的轉(zhuǎn)動(dòng)效果、尾巴陰影以及被掃描到的光點(diǎn),通過HTML和CSS的配合,實(shí)現(xiàn)了豐富的動(dòng)畫效果,
    2025-02-21
  • css3 display:flex 彈性盒模型的使用方法

    CSS3的Flexbox是一種強(qiáng)大的布局模式,通過設(shè)置display:flex可以輕松實(shí)現(xiàn)對(duì)齊、排列和分布網(wǎng)頁元素,它解決了傳統(tǒng)布局方法中的對(duì)齊、間距分配和自適應(yīng)布局等問題,接下來通過本
    2025-02-19
  • css3 實(shí)現(xiàn)icon刷新轉(zhuǎn)動(dòng)效果

    本文給大家介紹css3 實(shí)現(xiàn)icon刷新轉(zhuǎn)動(dòng)效果,文章開頭給大家介紹了webkit-transform、animation、@keyframes這三個(gè)屬性,結(jié)合實(shí)例代碼給大家介紹的非常詳細(xì),感興趣的朋友一
    2025-02-19
  • CSS3動(dòng)態(tài)效果之過渡屬性(最新推薦)

    CSS3過渡屬性用于實(shí)現(xiàn)元素從一種樣式平滑過渡到另一種樣式,通過設(shè)置transition-property過渡屬性、transition-duration過渡時(shí)長transition-timing-function過渡函數(shù)和trans
    2025-02-19
  • CSS3實(shí)現(xiàn)動(dòng)態(tài)旋轉(zhuǎn)加載樣式的示例代碼

    本文介紹了如何使用CSS3創(chuàng)建一個(gè)簡單的動(dòng)態(tài)旋轉(zhuǎn)加載樣式,通過定義一個(gè)帶有類名“l(fā)oader”的HTML元素,并使用CSS樣式和@keyframes規(guī)則來實(shí)現(xiàn)旋轉(zhuǎn)動(dòng)畫,你可以根據(jù)需要調(diào)整樣式
    2025-02-19
  • 使用CSS3實(shí)現(xiàn)平滑的過渡動(dòng)畫效果(實(shí)例代碼)

    這篇文章主要介紹了如何使用CSS3的transition屬性實(shí)現(xiàn)平滑的過渡動(dòng)畫,本文通過實(shí)例代碼給大家介紹的非常詳細(xì),感興趣的朋友一起看看吧
    2025-02-13
  • CSS3中使用flex和grid實(shí)現(xiàn)等高元素布局的示例代碼

    本文介紹了使用CSS3中的Flexbox和Grid布局實(shí)現(xiàn)等高元素布局的方法,通過簡單的兩列實(shí)現(xiàn)、每行放置3列以及全部代碼的展示,展示了這兩種布局方式的實(shí)現(xiàn)細(xì)節(jié)和效果,感興趣的朋
    2025-02-11
  • 使用CSS3和SVG創(chuàng)建圓形進(jìn)度條動(dòng)畫效果

    CSS3和SVG的結(jié)合使用為網(wǎng)頁設(shè)計(jì)帶來了創(chuàng)新的動(dòng)態(tài)視覺效果,本文通過一個(gè)圓形進(jìn)度條的動(dòng)畫特效示例,展示了如何利用CSS3的動(dòng)畫功能和SVG的矢量圖形能力來創(chuàng)建豐富的用戶交互體
    2024-10-24

最新評(píng)論