Possibly the most simple jQuery Slider
Do you have a jQuery on your website or blog and a section for 10 lines of code? If so, and you want to make a slide show automatic, this is the easiest code I've ever seen. So if you put a bunch of pictures in a box with an ordinary public container, you get this result.
Related image sliders for CSS only
Where the tag can be found? Go to Template > Edit HTML > click anywhere inside the code area and press the CTRL + F keys. Inside the search box, type this tag and hit Enter to find it:
Once confident that you have the library in your template, let's add the below script as well, which will make the set of images load as a slider:
Finally, save your changes by clicking the "Save Form" button. Now that we've added the scripts, let's add what we want to show ...
Use this HTML syntax to display the scroll bar
- Create a new message in the mail / page and paste the code in the HTML field.
That's all you need. It’s easier and more efficient for me than most of the libraries I use today, probably more often.
fadeOut ( 0 ): Time to take the picture
fadeIn ( 1000 ): Now it's time for the next photo.
('# Slide');}, 4000 ): Past in each frame
with gt (x) We select all dice from the number (x). In this case, 0 is the first, so this line hides all the squares ( hide () ) - except for the first square, the image appears at the beginning.
setInterval (function) [what to do ]}, 4000);
We need to repeat a few things from time to time and we can achieve this with setInterval - the delay time between each sentence.
$ ("# Pointer div: first child"). Hide (0)
In each of these FadeOut , we remove the div: first child with the disappearance effect, so the images are not visible ...
.Vonate '' div '). Don't hide (1000)
... and gradually the next ( next ) box appears .
End () appendTo ('# slide');
Finally, the first image appears and moves to the end ( Add ) "Menu".
Finally () resets the number of items that we transfer to the next ( ). So the first lost baby is pushed to the bottom of the pile, not the picture now.
In the example above, we limit the size of the object and prevent large images from overflowing. Finally, we added a rounded edge and placed the marker in the middle.
We set the image width to 100% so that there is no space around to fill the entire container and a minimum height of up to 300 pixels to fill the entire box.
An example of this is HTML markup:
Related image sliders for CSS only
How to add a simple jQuery slider to a blogger
Step 1. Add JavaScript
If you do not have jQuery, you must add this line to the beginning of the file Make sure the slide show is workingWhere the tag can be found? Go to Template > Edit HTML > click anywhere inside the code area and press the CTRL + F keys. Inside the search box, type this tag and hit Enter to find it:
Once confident that you have the library in your template, let's add the below script as well, which will make the set of images load as a slider:
Finally, save your changes by clicking the "Save Form" button. Now that we've added the scripts, let's add what we want to show ...
2. Create / add HTML slider
After running the above scripts in a template (although we can add them directly to the widget, page, or printable HTML), create the slider as above.Use this HTML syntax to display the scroll bar
- Go to Design as a widget, click Add Gadget and select HTML / JavaScript.IMAGE_URL ">IMAGE_URL ">IMAGE_URL ">
- Create a new message in the mail / page and paste the code in the HTML field.
That's all you need. It’s easier and more efficient for me than most of the libraries I use today, probably more often.
jQuery slider settings
On this slide, we can adjust some things for the last three digits. All expressed in milliseconds (4000 = 4 seconds)fadeOut ( 0 ): Time to take the picture
fadeIn ( 1000 ): Now it's time for the next photo.
('# Slide');}, 4000 ): Past in each frame
How it works
$ ('# Pointer div: gt (0)'). Hide ();with gt (x) We select all dice from the number (x). In this case, 0 is the first, so this line hides all the squares ( hide () ) - except for the first square, the image appears at the beginning.
setInterval (function) [what to do ]}, 4000);
We need to repeat a few things from time to time and we can achieve this with setInterval - the delay time between each sentence.
$ ("# Pointer div: first child"). Hide (0)
In each of these FadeOut , we remove the div: first child with the disappearance effect, so the images are not visible ...
.Vonate '' div '). Don't hide (1000)
... and gradually the next ( next ) box appears .
End () appendTo ('# slide');
Finally, the first image appears and moves to the end ( Add ) "Menu".
Finally () resets the number of items that we transfer to the next ( ). So the first lost baby is pushed to the bottom of the pile, not the picture now.
3. Adjust the slider
Although we don't want CSS to work with scrollbars, we can change the look to show different images, add captions, or improve the transition. Here are some ideas: Poems 1
Articles 2
Articles 3
This is a long article 4
In the example above, we limit the size of the object and prevent large images from overflowing. Finally, we added a rounded edge and placed the marker in the middle.
# Slide {If we were to make the images in the square above completely private, it would overlap. As a result, we set the ‘position’ object to ‘relative’.
Hiding too much;
Width: 500 pixels;
Height: 300 pixels;
Line: solid 3 pixels # 242424;
Boundary radius: 40 pixels;
Margin: 0 automatic;
Floor slab 0;
The place of the relative;
}
We set the image width to 100% so that there is no space around to fill the entire container and a minimum height of up to 300 pixels to fill the entire box.
# Pointer> div {To add other elements, such as text or captions, we add text to Spanish tags and set the space perfectly. And use this property to make the text appear below the image:
Position: Perfect.
High selection 0;
Left desk 0;
}
# Slide image {
Width: 100%;
Minimum height: 300 pixels;
Boundary bound 0;
Floor slab 0;
Boundary bound 0;
}
# Pointer duration {If you want to change the look of this slider, go to the form, click the Customize button, and add the Advanced tab> CSS and paste the CSS code in the space above.
Position: Perfect.
Bottom: 17 pixels;
Offer suspended;
Width: 100%;
Boundary bound 0;
Screen: 15 pixels 0;
Color: #ff;
Background # # 242424;
Font size: 18 pixels;
Line height: 18 pixels;
Text alignment: center;
}
An example of this is HTML markup:
Please do not return to the Writing tab if you post an image in the HTML message, as the comment comment may be removed from the Spanish tags.Link_URL1 "> Image_ URL1 "> Poems 1Link_URL2 "> Image_ URL2 "> Articles 2Link_URL3 "> Image_ URL3 "> Articles 3