css3 3D拉杆开关按钮动画特效

来源:https://www.sucaihuo.com/js/3706.html 2018-05-25 11:50浏览(1128) 收藏

一款比较逼真的css3 3D拉杆开关按钮动画特效,复选框拉杆开关切换效果,还有投影,立体效果非常棒。
css3 3D拉杆开关按钮动画特效
分类:css3 > 按钮 难易:初级
查看演示 下载资源 下载积分: 10 积分

js代码

<script type="text/javascript">
document.querySelector(".lever").addEventListener("change", function(){
	this.classList.remove("pristine");
	
	let ac = "aria-checked";
	this.setAttribute(ac,this.getAttribute(ac) == "true" ? "false" : "true");
});
</script>
评论0
头像

系统已开启自动识别垃圾评论机制,识别到的自动封号,下载出错或者资源有问题请联系全栈客服QQ 1915635791

1 2