1. When inserting, updating, or removing DOM elements, add style class names to the elements when appropriate 2. The element has an entry process: Enter and a leaving process: Leave. Both processes have an initial state () and a terminal state (-to) and a transition effect (activate) between the two states. 3. Writing Animation : Write Transition : The starting point and end point here are the role of Vue. or <style scoped> /* .todo-enter-active{ animation: myAnamite 1s; } .todo-leave-active{ animation: myAnamite 1s reverse; } @keyframes myAnamite { from{ transform: translateX(-100%); } to{ transform: translateX(0); } } */ .todo-enter,.todo-leave-to{ transform: translateX(-100%); } .todo-leave,.todo-enter-to{ transform: translateX(0); } .todo-enter-active, .todo-leave-active { transition: 1s linear; } </style> Multiple elements overload: Third-party animation library: Install: Import: SummarizeThis article ends here. I hope it can be helpful to you. I also hope you can pay more attention to more content on 123WORDPRESS.COM! You may also be interested in:
|
<<: Using CSS3 to achieve transition and animation effects
>>: LinkedIn revamps to simplify website browsing
1 Introduction Binary log records SQL statements ...
Recommended reading: Navicat12.1 series cracking ...
When one needs to edit or modify the website desi...
1: Check the PHP version after entering the termi...
Recently I saw an article on a public account tha...
First: <abbr> or <acronym> These two s...
This article shares with you the graphic tutorial...
1. Check the synchronization status of A and B da...
this keyword Which object calls the function, and...
grammar Here is the generic SQL syntax for INSERT...
Recently, I solved the problem of Docker and the ...
Table of contents 1. Brief Introduction 2. setInt...
The scroll bar position is retained when scrollin...
Table of contents 1. MySQL data backup 1.1, mysql...
After installing docker, there will usually be a ...