How to make fade-in and fade-out and slide-in and slide-out animation cases

php中世界最好的语言
Release: 2018-06-07 14:13:04
Original
2674 people have browsed it

This time I will bring you a case of how to make fade-in and fade-out and slide-in and slide-out animations. What are the precautions for making fade-in and fade-out and slide-in and slide-out? The following is a practical case, let’s take a look.

1. Fade in and fade out effect:

Let’s do this example:

There are two buttons, click to fade in, there is a p layer fade in, Click to fade out, and the p layer fades out:

    jQuery淡入淡出    
    

我是一个p块哦!!!!!

Copy after login

Running effect:

## 2. Slide in and slide out effect:

Let’s do this example:

There are two buttons, click to slide in, there is a p layer to slide in, click to slide out, and the p layer slides out:

    jQuery滑入滑出    
    

我是一个p块哦!!!!!

Copy after login
I believe you have read this article You have mastered the case method. For more exciting information, please pay attention to other related articles on the PHP Chinese website!

Recommended reading:

Summary of how to use the state object of vuex

vuex state mapState actual project analysis

The above is the detailed content of How to make fade-in and fade-out and slide-in and slide-out animation cases. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!