css3 花瓣按钮
来源:互联网 发布:nginx last modified 编辑:程序博客网 时间:2024/04/29 06:24
<template> <div class="pin-star"> <input type="checkbox" class="pin-leaf-checkbox"> <div class="pin-star-leaf"> </div> <div class="pin-star-leaf"> </div> <div class="pin-star-leaf"> </div> <div class="pin-star-leaf"> </div> <div class="pin-star-leaf"> </div> <div class="pin-star-center"> </div> </div></template><style lang="stylus" rel="stylesheet/stylus" scoped> .pin-star{ position: relative width: 300px height: 300px } .pin-leaf-checkbox, .pin-star-center { width: 45px; height: 50px; position: absolute; left: 0; right: 0; top: -60px; bottom: 0; margin: auto; background-color: #fff; border-radius: 50%; cursor: pointer; z-index: 999 } .pin-star-center, .pin-star-leaf{ pointer-events: none; } .pin-star-center > input[type="checkbox"]{ width: 100%; height: 100%; cursor: pointer; } .pin-star-leaf { width: 60px height: 120px background-color: #b8f0f5 border-radius: 50%/30% 30% 70% 70% position: absolute left: 0 right: 0 top: 0 bottom: 0 margin: auto opacity: 0.5 transition: transform 1s cubic-bezier(.8,-.5,.2,1.4); transform-origin: 30px 30px &:nth-of-type(1) { background-color: #B8F0F5 } &:nth-of-type(2) { background-color: #9CF3DC } &:nth-of-type(3) { background-color: #94F3B0 } &:nth-of-type(4) { background-color: #C2F8A1 } &:nth-of-type(5) { background-color: #FFEFAF } } .pin-leaf-checkbox:checked ~ .pin-star-leaf{ transition: transform 1s cubic-bezier(.8,-.5,.2,1.4); } .pin-leaf-checkbox:checked ~ .pin-star-leaf:nth-of-type(5){ transform: rotatez(35deg); } .pin-leaf-checkbox:checked ~ .pin-star-leaf:nth-of-type(4){ transform: rotatez(105deg); } .pin-leaf-checkbox:checked ~ .pin-star-leaf:nth-of-type(3){ transform: rotatez(180deg); } .pin-leaf-checkbox:checked ~ .pin-star-leaf:nth-of-type(2){ transform: rotatez(255deg); } .pin-leaf-checkbox:checked ~ .pin-star-leaf:nth-of-type(1){ transform: rotatez(325deg); }</style>
阅读全文
0 0
- css3 花瓣按钮
- jQuery + CSS3 实现花瓣剥落特效
- CSS3和jQuery实现花瓣网固定顶部位置悬浮菜单效果
- CSS3--按钮制作工具
- CSS3渐变色按钮
- 10款CSS3按钮
- CSS3 下拉菜单按钮
- CSS3菜单按钮
- CSS3好看的按钮
- html5 CSS3 渐变按钮
- CSS3发光按钮
- CSS3渐变色按钮
- 幽灵按钮css3
- css3做幽灵按钮
- CSS3立体按钮
- CSS3 按钮 打钩
- css3开关按钮
- CSS3翻页按钮
- 今天进度到了高博《十四讲》的第六章
- github markdown语法大全
- UISegmentedControl
- Postgresql 动态统计某一列的某一值出现的次数
- 如何关闭占用的端口程序
- css3 花瓣按钮
- java package包 、 jar包
- java基础知识总结之arrayList与linkedList
- activiti 网页流程设计器 的使用
- Java远程通讯可选技术及原理
- c标签 if else c标签 总结
- Vue.js v-bind遇到的数据渲染问题
- javascript面向对象的初识
- SpingMVC4.3x教程之四@RequestBody和@ResponseBody