css3點擊顯示漣漪特效,怎樣用css3做出點擊顯示漣漪特效,點擊顯示漣漪的特效需要注意哪些方面?下面給大家做一個案例.
<!DOCTYPE html><html ><head> <meta charset="UTF-8"> <title>css3點擊出現不同顏色漣漪特效</title><meta name="keywords" content=" css3點擊出現不同顏色漣漪特效 " /><meta name="description" content=" css3點擊出現不同顏色漣漪特效 " /> <style> /* NOTE: The styles were added inline because Prefixfree needs access to your styles and they must be inlined if they are on local disk! */ .ripple{ position:absolute; width:100vmax; height:100vmax; top:-50vmax; left:-50vmax; border-radius:50%;}body{ overflow:hidden;}.pad{ position:absolute; left:0; right:0; top:0; bottom:0;} </style></head><body> <!-- touch or click --><div></div> <script src="js/index.js"></script> </body></html>Css部分:.ripple{ position:absolute; width:100vmax; height:100vmax; top:-50vmax; left:-50vmax; border-radius:50%;}body{ overflow:hidden;}.pad{ position:absolute; left:0; right:0; top:0; bottom:0;}
Css3點擊顯示漣漪特效就這麼多了,更多精彩請關注php中文網其它相關文章!
相關閱讀:
CSS3怎麼製作蝴蝶飛舞的動畫
怎樣用canvas實現小球和滑鼠的互動
怎樣用canvas做出粒子噴泉動畫的效果