Vue.js implements the code of clicking the icon to zoom in and leaving

Vue.js implements the code of clicking the icon to zoom in and leaving

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:
  • Solution to automatically trigger click events when clicking on pop-up window in Vue (simulation scenario)
  • Two ways to close the pop-up window by clicking on the blank area in Vue
  • Vue implements clicking the current row to change color
  • Vue3.0 implements click-to-switch verification code (component) and verification
  • Detailed explanation of the event of triggering child components by clicking buttons in parent components in Vue
  • Vue prevents multiple triggering requests after continuous clicks in a short period of time
  • Vue implements dynamic assignment of id, and click event to obtain the id operation of the currently clicked element
  • Example of Vue realizing click to display the pop-up box
  • Vue uses the table in ant design to trigger the event operation when clicking a row
  • Vue implements click feedback instructions for water ripple effect

<<:  mysql 5.6.23 winx64.zip installation detailed tutorial

>>:  Centos 7 64-bit desktop version installation graphic tutorial

Recommend

Linux tac command implementation example

1. Command Introduction The tac (reverse order of...

Four categories of CSS selectors: basic, combination, attribute, pseudo-class

What is a selector? The role of the selector is t...

How to change the root password of Mysql5.7.10 on MAC

First, start MySQL in skip-grant-tables mode: mys...

Detailed explanation of MySql data type tutorial examples

Table of contents 1. Brief Overview 2. Detailed e...

Open the Windows server port (take port 8080 as an example)

What is a Port? The ports we usually refer to are...

Analysis of common usage examples of MySQL process functions

This article uses examples to illustrate the comm...

Detailed explanation of Vue's keyboard events

Table of contents Common key aliases Key without ...

The process of quickly converting mysql left join to inner join

During the daily optimization process, I found a ...

MySQL inspection script (must read)

As shown below: #!/usr/bin/env python3.5 import p...

Teach you how to subcontract uniapp and mini-programs (pictures and text)

Table of contents 1. Mini Program Subcontracting ...

MySQL 5.6.28 installation and configuration tutorial under Linux (Ubuntu)

mysql5.6.28 installation and configuration method...

Mysql method to copy a column of data in one table to a column in another table

mysql copy one table column to another table Some...

Detailed steps to install CentOS7 system on VMWare virtual machine

Pre-installation work: Make sure vmware workstati...

How to build a K8S cluster and install docker under Hyper-V

If you have installed the Win10 system and want t...