Use JQ to write the most basic fade-in and fade-out effects. Attached demonstration animation _ jquery-js tutorial

Source: Internet
Author: User
Using JQ to write the most basic fade-in and fade-out effects jQuery is a JavaScript library, that is, JavaScript extensions, used to meet the increasing demand for different special effects. The essence is JavaScript.

Next we will compile a basic JQ program to illustrate JQ.

I. Basic Objectives

There are three buttons in the webpage. One button can only hide text, and the other can only show text. The other button can hide and show text at the same time. Click Show and click hide to show the text without limit.

Ii. Production Process

1. First, you need to download a JQ support file from the JQ official website and put it in your site folder. The Supported file is jQuery1.11. You can download jQuery1.11 compatible with the old browser IE6 from the official jQuery website, instead of jQuery2 compatible with the old browser ie6.

2. The entire webpage code is as follows, which is further described in parts:

   
  
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.