Hey guys, today in this post we are going to learn about How to Create Custom Banner Rotating Image with Text Slider Using JQuery and css3.
Files we used in this post example:-
banner-rotate_slide.html | HTML File | It is used for create a Custom Banner Rotating Image with Text Slider on display the browser. |
bannerRotateSlide.js |
JavaScript File | It is holding JavaScript click functioality |
bannerRotateSlide.css |
Style CSS File | It is used for Rotating Image with Text Slider alignment. |
jquery-1.7.1.min.js |
JQuery Library Min File | It is a JQuey Library that is provided by JQuery. |
Final Output
Download Supported jQuery Library for Custom Banner Rotating Image with Text Slider.
Other post that would you like to learn
Step 1:- Create HTML File : banner-rotate_slide.html
banner-rotate_slide.html [HTML File]
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Untitled Document</title> <script type="text/javascript" src="js/jquery-1.7.1.min.js"></script> <script type="text/javascript" src="include/bannerRotateSlide.js"></script> <link rel="stylesheet" href="include/bannerRotateSlide.css" type="text/css" media="all"> </head> <body> <div id="mainContainer"> <ul class="slideList"> <li><p>In this post we are going to learn about that how to edit row, saving row or removing row dynamically in Salesforce lightning component.</p> <p>In this example we will customize the same component and achieve to the editing row, saving row and removing rows functionality of dynamically on Custom sObject by help of wrapper apex class and JavaScript Controller in lightning component...<span class="readMore"><a href="https://www.w3web.net/edit-save-and-remove-rows-dynamically-in-lightning-component/">Read more...</a></span></p></li> <li> <p>In this post we are going to learn about how to validate child component from parent component on click button using aura method in Salesforce lightning component.</p> <p>Real time scenarios:- Create a custom and stylish form validation and validate child component from parent component using aura method in lightning component...<span class="readMore"><a href="https://www.w3web.net/how-to-validate-child-component-from-parent-component/">Read more...</a></span> </p> </li> <li> <p><strong>Real time scenarios:-</strong> Write a trigger on parent object where create a <strong>custom field</strong> as Employee (Number type).</p> <p>Or if user update the value of employee <strong>less then</strong> the total number of child records, in this case the child records should be <strong>exist only equal to </strong> employee size, rest records of child object should be automatic removed. <span class="readMore"><a href="https://www.w3web.net/update-count-of-child-record-based-on-parent-object-value/">Read more...</a></span></p> </li> <li> <p>In this post we are going to learn about How to create roll-up summary trigger for <b>count child records</b> on custom object using Apex trigger in Salesforce.</p> <p><strong>Real time scenarios:-</strong> Write a roll-up summary trigger for count child records on custom parent object. Create a custom field (Number Type) on parent object, <strong>calculate the total number</strong> of related <strong>child records</strong> <span class="readMore"><a href="https://www.w3web.net/roll-up-summary-trigger-on-custom-object/">Read more...</a></span></p> </li> </ul> <ul class="sublist"> <li> <div class="postImage"> <a href="https://www.w3web.net/edit-save-and-remove-rows-dynamically-in-lightning-component/"> <img src="https://www.w3web.net/wp-content/uploads/2020/07/editDeleteSave.png" /> </a> </div> </li> <li> <div class="postImage"> <a href="https://www.w3web.net/how-to-validate-child-component-from-parent-component/"> <img src="https://www.w3web.net/wp-content/uploads/2020/08/stylishFormValidation.png" width="200" height="150"/> </a> </div> </li> <li> <div class="postImage"> <a href="https://www.w3web.net/roll-up-summary-trigger-on-custom-object/"> <img src="https://www.w3web.net/wp-content/uploads/2020/08/employeeSizeTrigger.png" width="200" height="150"/> </a> </div> </li> <li> <div class="postImage"> <a href="https://www.w3web.net/roll-up-summary-trigger-on-custom-object/"> <img src="https://www.w3web.net/wp-content/uploads/2020/08/rollupSummary-trigger.png" width="200" height="150"/> </a> </div> </li> </ul> </div> </body> </html> |
Step 2:- Create JavaScript File : bannerRotateSlide.js
bannerRotateSlide.js [JavaScript File]
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 |
$(document).ready(function(){ $('#mainContainer').autoslide(); }); $.fn.autoslide=function(){ var thisObj = $(this); var ulmain = thisObj.find('ul:first'); $('ul.slideList li').not(':first').hide(); $('ul.sublist li').not(':first').hide(); $('#mainContainer').append('<div id="roundList"></div>'); $('ul.slideList li').each(function(i){ $('#roundList').append("<a href='#'>"+i+"</a>"); }); $('#roundList a:eq(0)').addClass('active'); var lastIndex = 0; var animation= true; $('#roundList a').click(function(event){ event.preventDefault(); var anchorTxt = $(this).text(); if(lastIndex!=anchorTxt) { if(animation) { animation=false; $("ul.sublist li:eq("+lastIndex+")").hide(500); $("ul.sublist li:eq("+anchorTxt+")").show(500); $("ul.slideList li:eq("+lastIndex+")").fadeOut(); $("ul.slideList li:eq("+anchorTxt+")").fadeIn(10, function(){ lastIndex=anchorTxt; animation= true; }); $('#roundList a').removeClass('active'); $(this).addClass('active'); } } return false; }) } |
Step 3:- Create Style CSS : bannerRotateSlide.css
bannerRotateSlide.css [Style CSS File]
1 2 3 4 5 6 7 8 9 10 11 |
#mainContainer{ width:400px; margin:auto; font-family:Arial, Helvetica, sans-serif; position:relative;} ul.slideList{ margin:0; padding:0; list-style:none; z-index:10;} ul.slideList li { padding:5px; width:600px; position:absolute; border:1px #ccc solid; height:300px;} #roundList{ font-size:11px; color:#000000; position:absolute; left:20px; top:280px; text-indent:25px;} #roundList a{ float:left; width:10px; height:10px; border-radius:10px; display:inline-block; border:1px #ff0000 solid; margin:0 5px 0 0; overflow:hidden;} #roundList a:hover, #roundList a.active{ background:#ff0000;} ul.sublist{ margin:0; padding:0; list-style:none; position:relative;} ul.sublist li{ width:240px; height:180px; overflow:hidden; position:absolute; right:-200px; top:145px;} ul.sublist li img{ max-width:100%;} |
Further post that would you like to learn
Sir, I read all your blogs. You write very well, I hope you will keep giving such posts even further.
You’re a beautiful inspiration. It really helps me in any situation. Where I stuck. Many of my friends told me to comment there post but I stuck what I should comment. Finally I got your post it always help me. Thanks for the lovely post.