The previous article introduced how Vue can realize cropping pictures and zooming in, out, and rotating them. Today, I will introduce how Vue.js can realize the functions of clicking icons to zoom in and out. The specific code is as follows: @-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; } This is the end of this article about vue.js's code for implementing zooming in and out when clicking an icon. For more relevant content about vue's code for implementing zooming in and out when clicking an icon, please search 123WORDPRESS.COM's previous articles or continue to browse the following related articles. I hope you will support 123WORDPRESS.COM in the future! You may also be interested in:
|
<<: mysql 5.6.23 winx64.zip installation detailed tutorial
>>: Centos 7 64-bit desktop version installation graphic tutorial
Basically all e-commerce projects have the functi...
Everyone has played the pinball and brick-breakin...
Or write down the installation process yourself! ...
The layout problem of irregular picture walls enc...
Preface As one of the best web servers in the wor...
Table of contents 1. How to obtain different view...
HTML is a hybrid language used for publishing on ...
Table of contents Canvas related documents Effect...
First, understand the updatexml() function UPDATE...
webpack loads css files and its configuration Aft...
Table of contents Index Model B+Tree Index select...
1. On a networked machine, use the default centos...
For those who are new to virtual machines or have...
Redis Introduction Redis is completely open sourc...
This article example shares the specific code of ...