国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 開發 > CSS > 正文

css3實現手機開關燈效果

2024-07-11 08:20:48
字體:
來源:轉載
供稿:網友
這篇文章主要為大家詳細介紹了css3實現手機開關燈效果,具有一定的參考價值,感興趣的小伙伴們可以參考一下,有需要的朋友可以收藏方便以后借鑒。

css3實現手機開關燈效果

<!DOCTYPE html><title>css3實現手機開關燈效果 - 361源碼</title><head><style class="cp-pen-styles">*{  margin: 0px;  padding: 0px;}body {  background-color: #415062;}input[type="checkbox"] {  position: absolute;  top: 50%;  left: 50%;  margin: 0;  margin-top: -40px;  margin-left: -80px;  -webkit-appearance: none;     -moz-appearance: none;          appearance: none;  cursor: pointer;  -webkit-backface-visibility: hidden;          backface-visibility: hidden;  -webkit-transition: all 0.5s cubic-bezier(0.85, 0.1, 0.05, 0.75);  transition: all 0.5s cubic-bezier(0.85, 0.1, 0.05, 0.75);  width: 80px;  height: 80px;  outline: 40px solid #fff;  outline-offset: -40px;  box-shadow: 0 0 0 4px #dfdfdf, 80px 0 0 4px #dfdfdf, 0 0 0 4px #dfdfdf, 80px 0 0 4px #dfdfdf;}input[type="checkbox"]:checked {  -webkit-transform: translateX(100%);          transform: translateX(100%);  outline-color: #5d6aba;  box-shadow: 0 0 0 4px #dfdfdf, -80px 0 0 4px #dfdfdf, -80px 0 0 4px #dfdfdf, 0 0 0 4px #dfdfdf;}input[type="checkbox"]:checked + .backgroundAnimation {  background-color: #baad5d;}.backgroundAnimation {  width: 100vw;  height: 100vh;  -webkit-transition: background-color 0.5s ease;  transition: background-color 0.5s ease;}</style></head><body><input type="checkbox"/><!-- option--><div class="backgroundAnimation"></div></body></html>


以上就是css3實現手機開關燈效果的全部內容,希望對大家的學習和解決疑問有所幫助,也希望大家多多支持武林網。
發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 波密县| 安康市| 鲁甸县| 鹿泉市| 溧水县| 钟山县| 塔河县| 南昌市| 望城县| 武汉市| 家居| 门头沟区| 介休市| 昭平县| 武清区| 惠安县| 荔浦县| 玉田县| 绥芬河市| 安仁县| 大足县| 商南县| 万山特区| 松桃| 墨玉县| 桃园县| 东台市| 闽清县| 鄂伦春自治旗| 门头沟区| 那曲县| 乐陵市| 麻栗坡县| 咸丰县| 昌平区| 姚安县| 玛沁县| 新平| 南江县| 新田县| 呼和浩特市|