Implementation results:Implementation principle:
Technology stack:
Javascript+jquery+html+css
Implementation steps:
0. Get element
1. The mouse is placed on the carousel chart, showing the control buttons on both sides, and hiding after moving away
2. Control button binding events for both sides (call the same method with only one argument, true for positive rotation, false for reverse rota
This paper illustrates the multilevel graph of the characters with fade effect in jquery. Share to everyone for your reference. Specifically as follows:
This demonstrates the jquery implementation with fade effect of the character multilevel diagram, setquestpose:function in the n represents a total of several objects R represents the perimeter I represent the n
JQuery focus diagram
1
The above is a simple focus graph example. The idea is that the image path is written in the href attribute of tag a. Click a to get $ (this ). attr ("href"); and the value is given to the src of the img. Use jQuery to write a click event.
Look at the effect first, if it's what you want, you can seeGeneral idea:1. Automatic Carousel2. Specify the Carousel3. Flip left and right
Detailed Steps: jquery section
Set the first picture to show that the other sibling elements are hidden
Auto-Carousel, specify the first index as i=0, and then i++, so that its corresponding I index of the picture display, the other hidden, when i=5 (that is, the sixth picture, make it the first
HTML code:CSS code:*{margin:0; padding:0;}UL Li{list-style:none;}. back{height:400px; overflow:hidden; margin-top:100px;}. back li{width:100%; height:400px; margin:0 Auto;}. back li.l1{background:red;}. back Li.l2{background:yellow;}. back Li.l3{background:blue;}. back Li.l4{background:black;}. back Li.l5{background:green;}. point{text-align:center; Margin-top: -30px;}. Point li{width:20px; height:20px; border:2px solid #fff; border-radius:10px; box-sizing:border-box; display:inline-b Lock;}. Po
Let's go to the carousel today, today we're talking about jquery's Carousel!First, you have a plugin:Please ignore the Zepto plugin, he did not play any role!That's the two!Then there's the code!That's it, have you learned it??jquery Carousel Diagram
Based on jquery full-screen focus diagram Switch plugin responsiveslides is a belt left and right arrow, index button automatic carousel switching effect download.
The effect chart is as follows:
Online preview Source Download
HTML code:
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.