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
1. Command Introduction The tac (reverse order of...
What is a selector? The role of the selector is t...
First, start MySQL in skip-grant-tables mode: mys...
Table of contents 1. Brief Overview 2. Detailed e...
Overview binlog2sql is an open source MySQL Binlo...
What is a Port? The ports we usually refer to are...
This article uses examples to illustrate the comm...
Table of contents Common key aliases Key without ...
During the daily optimization process, I found a ...
As shown below: #!/usr/bin/env python3.5 import p...
Table of contents 1. Mini Program Subcontracting ...
mysql5.6.28 installation and configuration method...
mysql copy one table column to another table Some...
Pre-installation work: Make sure vmware workstati...
If you have installed the Win10 system and want t...