上篇文章给大家介绍了vue实现裁切图片同时实现放大、缩小、旋转功能 ,今天给大家介绍vue.js实现点击图标放大离开缩小功能,具体代码如下所示:
@-webkit-keyframes pulse1 { from { -webkit-transform: scale3d(1.05, 1.05, 1.05); transform: scale3d(1.05, 1.05, 1.05); } to { -webkit-transform: scale3d(1, 1, 1); transform: scale3d(1, 1, 1); } /* to { -webkit-transform: scale3d(1, 1, 1); transform: scale3d(1, 1, 1); } */ } @keyframes pulse1 { from { -webkit-transform: scale3d(1.05, 1.05, 1.05); transform: scale3d(1.05, 1.05, 1.05); } to { -webkit-transform: scale3d(1, 1, 1); transform: scale3d(1, 1, 1); } /* to { -webkit-transform: scale3d(1, 1, 1); transform: scale3d(1, 1, 1); } */ } .pulse1 { -webkit-animation-name: pulse1; animation-name: pulse1; } @-webkit-keyframes pulse { from { -webkit-transform: scale3d(1, 1, 1); transform: scale3d(1, 1, 1); } to { -webkit-transform: scale3d(1.05, 1.05, 1.05); transform: scale3d(1.05, 1.05, 1.05); } /* to { -webkit-transform: scale3d(1, 1, 1); transform: scale3d(1, 1, 1); } */ } @keyframes pulse { from { -webkit-transform: scale3d(1, 1, 1); transform: scale3d(1, 1, 1); } to { -webkit-transform: scale3d(1.05, 1.05, 1.05); transform: scale3d(1.05, 1.05, 1.05); } /* to { -webkit-transform: scale3d(1, 1, 1); transform: scale3d(1, 1, 1); } */ } .pulse { -webkit-animation-name: pulse; animation-name: pulse; } .animate1 { -webkit-animation-duration: 1s; animation-duration: 1s; -webkit-animation-fill-mode: both; animation-fill-mode: both; }
到此这篇关于vue.js实现点击图标放大离开时缩小的代码的文章就介绍到这了,更多相关vue实现点击图标放大离开缩小内容请搜索华域联盟以前的文章或继续浏览下面的相关文章希望大家以后多多支持华域联盟!
您可能感兴趣的文章:
- vue点击弹窗自动触发点击事件的解决办法(模拟场景)
- vue中实现点击空白区域关闭弹窗的两种方法
- Vue实现点击当前行变色
- vue3.0实现点击切换验证码(组件)及校验
- 详解vue中在父组件点击按钮触发子组件的事件
- Vue 防止短时间内连续点击后多次触发请求的操作
- vue实现动态给id赋值,点击事件获取当前点击的元素的id操作
- vue实现点击出现操作弹出框的示例
- vue用ant design中table表格,点击某行时触发的事件操作
- vue实现水波涟漪效果的点击反馈指令
本文由 华域联盟 原创撰写:华域联盟 » vue.js实现点击图标放大离开时缩小的代码
转载请保留出处和原文链接:https://www.cnhackhy.com/49098.htm