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

JS calculates the probability of winning based on the prize weight

Table of contents 1. Example scenario 1.1. Set th...

Vue implements a draggable tree structure diagram

Table of contents Vue recursive component drag ev...

Detailed analysis of the difference between Ref and Reactive in Vue3.0

Table of contents Ref and Reactive Ref Reactive T...

Django2.* + Mysql5.7 development environment integration tutorial diagram

environment: MAC_OS 10.12 Python 3.6 mysql 5.7.25...

Detailed example of using case statement in MySQL stored procedure

This article uses an example to illustrate the us...

Detailed explanation of nginx optimization in high concurrency scenarios

In daily operation and maintenance work, nginx se...

Diving into JS inheritance

Table of contents Preface Prepare Summarize n way...

Vue element implements table adding, deleting and modifying data

This article shares the specific code of vue elem...

A detailed introduction to the CSS naming specification BEM from QQtabBar

BEM from QQtabBar First of all, what does BEM mea...

CSS shadow animation optimization tips

This technique comes from this article - How to a...

Practical method of deleting files from Linux command line

rm Command The rm command is a command that most ...

JavaScript to achieve the idea of ​​​​snake game

The implementation idea of ​​the javascript game ...