How to Create Custom Banner Rotating Image with Text Slider Using JQuery and css3 | Custom Banner Rotating Image with Text Slider in JQuery

891 views

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

How to Create Custom Banner Rotating Image with Text Slider in JQuery and css3 -- w3web.net

 

You can download file directly from github by Click Here.

Note:: – You will get an email, so put correct email and mobile number and BEGIN YOUR JOURNEY from Today!

 

 

Download Supported jQuery Library for Custom Banner Rotating Image with Text Slider.

 

Other related post that would you like to learn in Salesforce

 

Step 1:- Create HTML File : banner-rotate_slide.html

banner-rotate_slide.html [HTML File]

  1.   <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  5. <title>Untitled Document</title>
  6. <script type="text/javascript" src="js/jquery-1.7.1.min.js"></script>
  7. <script type="text/javascript" src="include/bannerRotateSlide.js"></script>
  8. <link rel="stylesheet" href="include/bannerRotateSlide.css" type="text/css" media="all">
  9.  
  10. </head>
  11.  
  12. <body>
  13. <div id="mainContainer">
  14.  
  15.   <ul class="slideList">
  16.      <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>
  17.      <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>
  18.  
  19. 	 <li>
  20.         <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>
  21.          <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>
  22.      </li>
  23.  
  24. 	 <li>
  25.         <p><strong>Real time scenarios:-</strong> Write a trigger on parent object where create a <strong>custom field</strong> as Employee (Number type).</p>
  26.         <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>
  27.  
  28.      </li>
  29. 	 <li>
  30.        <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>
  31.        <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>
  32.      </li>
  33.   </ul>
  34.   <ul class="sublist">
  35.     <li>
  36.         <div class="postImage">					
  37.             <a href="https://www.w3web.net/edit-save-and-remove-rows-dynamically-in-lightning-component/">
  38.                 <img src="https://www.w3web.net/wp-content/uploads/2020/07/editDeleteSave.png" />
  39.             </a>
  40.          </div>
  41.      </li>
  42. 	<li>
  43.       <div class="postImage">					
  44.             <a href="https://www.w3web.net/how-to-validate-child-component-from-parent-component/">
  45.                 <img src="https://www.w3web.net/wp-content/uploads/2020/08/stylishFormValidation.png" width="200" height="150"/>
  46.             </a>
  47.         </div> 
  48.      </li>
  49. 	<li>
  50.           <div class="postImage">					
  51.                 <a href="https://www.w3web.net/roll-up-summary-trigger-on-custom-object/">
  52.                     <img src="https://www.w3web.net/wp-content/uploads/2020/08/employeeSizeTrigger.png" width="200" height="150"/>
  53.                 </a>
  54.             </div>
  55.       </li>
  56. 	<li>
  57.        <div class="postImage">					
  58.             <a href="https://www.w3web.net/roll-up-summary-trigger-on-custom-object/">
  59.                 <img src="https://www.w3web.net/wp-content/uploads/2020/08/rollupSummary-trigger.png" width="200" height="150"/>
  60.             </a>
  61.         </div>
  62.     </li>
  63.   </ul>
  64. </div>
  65.  
  66.  <br/>
  67.    <!--Start RelatedTopics Section-->
  68. <div style="border:1px #ddd solid; padding:10px; background:#eee; margin:40px 0;">
  69.  
  70.             <p data-aura-rendered-by="435:0"><img src="https://www.w3web.net/wp-content/uploads/2021/05/thumbsUpLike.png" width="25" height="25" style="vertical-align:top; margin-right:10px;" data-aura-rendered-by="436:0"><strong data-aura-rendered-by="437:0"><span style="font-size:16px; font-style:italic; display:inline-block; margin-right:5px;">Don't forget to check out:-</span><a href="https://www.w3web.net/" target="_blank" rel="noopener noreferrer" style="text-decoration:none;" data-aura-rendered-by="440:0">An easy way to learn step-by-step online free Salesforce tutorial, To know more Click  <span style="color:#ff8000; font-size:18px;" data-aura-rendered-by="442:0">Here..</span></a></strong></p>
  71.  
  72.             <br/><br/>
  73.             <p data-aura-rendered-by="435:0"><img src="https://www.w3web.net/wp-content/uploads/2021/07/tickMarkIcon.png" width="25" height="25" style="vertical-align:top; margin-right:10px;" data-aura-rendered-by="436:0"><strong data-aura-rendered-by="437:0"><span style="font-size:17px; font-style:italic; display:inline-block; margin-right:5px; color:rgb(255 128 0);">You May Also Like →</span> </strong></p>
  74.             <div style="display:block; overflow:hidden;"> 
  75.                 <div style="width: 50%; float:left; display:inline-block">
  76.                     <ul style="list-style-type: square; font-size: 16px; margin: 0 0 0 54px; padding: 0;"> 
  77.                         <li><a href="https://www.w3web.net/lwc-get-set-lightning-checkbox-value/" target="_blank" rel="noopener noreferrer">How to get selected checkbox value in lwc</a></li>
  78.                         <li><a href="https://www.w3web.net/display-account-related-contacts-in-lwc/" target="_blank" rel="noopener noreferrer">how to display account related contacts based on AccountId in lwc</a></li>
  79.                         <li><a href="https://www.w3web.net/create-lightning-datatable-row-actions-in-lwc/" target="_blank" rel="noopener noreferrer">how to create lightning datatable row actions in lwc</a></li>
  80.                         <li><a href="https://www.w3web.net/if-and-else-condition-in-lwc/" target="_blank" rel="noopener noreferrer">how to use if and else condition in lwc</a></li>
  81.                         <li><a href="https://www.w3web.net/get-selected-radio-button-value-and-checked-default-in-lwc/" target="_blank" rel="noopener noreferrer">how to display selected radio button value in lwc</a></li>
  82.                     </ul>
  83.             </div>
  84.  
  85.             <div style="width: 50%; float:left; display:inline-block">
  86.                     <ul style="list-style-type: square; font-size: 16px; margin: 0 0 0 54px; padding: 0;"> 
  87.                         <li><a href="https://www.w3web.net/display-account-related-contacts-lwc/" target="_blank" rel="noopener noreferrer">display account related contacts based on account name in lwc</a></li>
  88.                         <li><a href="https://www.w3web.net/create-lightning-datatable-row-actions-in-lwc/" target="_blank" rel="noopener noreferrer">how to insert a record of account Using apex class in LWC</a></li>
  89.                         <li><a href="https://www.w3web.net/fetch-picklist-values-dynamic-in-lwc/" target="_blank" rel="noopener noreferrer">how to get picklist values dynamically in lwc</a></li>
  90.                         <li><a href="https://www.w3web.net/edit-save-and-remove-rows-dynamically-in-lightning-component/" target="_blank" rel="noopener noreferrer">how to edit/save row dynamically in lightning component</a></li>
  91.                         <li><a href="https://www.w3web.net/update-parent-object-from-child/" target="_blank" rel="noopener noreferrer">update parent field from child using apex trigger</a></li>
  92.                     </ul>
  93.                 </div>
  94.                <div style="clear:both;"></div> 
  95.                <br/>
  96.                 <div class="youtubeIcon">
  97.                     <a href="https://www.youtube.com/channel/UCW62gTen2zniILj9xE6LmOg" target="_blank" rel="noopener noreferrer"><img src="https://www.w3web.net/wp-content/uploads/2021/11/youtubeIcon.png" width="25" height="25" style="vertical-align:top; margin-right:10px;"/> <strong>TechW3web:-</strong> To know more, Use this <span style="color: #ff8000; font-weight: bold;">Link</span> </a>
  98.                 </div>
  99.     </div>
  100.  
  101. </div>
  102.  
  103.   <!--End RelatedTopics Section-->
  104.  
  105. </body>
  106. </html>

Step 2:- Create JavaScript File : bannerRotateSlide.js

bannerRotateSlide.js [JavaScript File]

Note:: – You will get an email, so put correct email and mobile number and BEGIN YOUR JOURNEY from Today!
 
 
  1.   $(document).ready(function(){
  2.     $('#mainContainer').autoslide();
  3.   });
  4.  
  5.   $.fn.autoslide=function(){
  6.     var thisObj = $(this);
  7. 	var ulmain = thisObj.find('ul:first');
  8. 	$('ul.slideList li').not(':first').hide();
  9. 	$('ul.sublist li').not(':first').hide();
  10. 	$('#mainContainer').append('<div id="roundList"></div>');
  11.  
  12. 	$('ul.slideList li').each(function(i){
  13. 	  $('#roundList').append("<a href='#'>"+i+"</a>");
  14. 	});
  15.  
  16. 	$('#roundList a:eq(0)').addClass('active');
  17.  
  18. 	var lastIndex = 0;
  19. 	var animation= true;
  20.  
  21. 	$('#roundList a').click(function(event){
  22. 	  event.preventDefault();
  23. 	  var anchorTxt = $(this).text();
  24. 	  if(lastIndex!=anchorTxt)
  25. 	  {	    
  26. 	    if(animation)
  27. 		  {
  28. 		   animation=false;
  29.  
  30. 		   $("ul.sublist li:eq("+lastIndex+")").hide(500);
  31. 		   $("ul.sublist li:eq("+anchorTxt+")").show(500);
  32.  
  33. 		   $("ul.slideList li:eq("+lastIndex+")").fadeOut();		   	   
  34. 		   $("ul.slideList li:eq("+anchorTxt+")").fadeIn(10, function(){	    
  35. 		     lastIndex=anchorTxt;
  36. 			 animation= true;			 
  37. 		   });
  38.  
  39. 		   $('#roundList a').removeClass('active');
  40. 		   $(this).addClass('active');
  41. 		  }  
  42.   	  }
  43. 	  return false;
  44.  
  45. 	})
  46.  
  47.   }

Step 3:- Create Style CSS : bannerRotateSlide.css

bannerRotateSlide.css [Style CSS File]

  1.   #mainContainer{ width:400px; margin:auto; font-family:Arial, Helvetica, sans-serif; position:relative;}
  2.    ul.slideList{ margin:0; padding:0; list-style:none; z-index:10;}
  3.    ul.slideList li { padding:5px; width:600px; position:absolute; border:1px #ccc solid; height:300px;}
  4.  
  5.    #roundList{ font-size:11px; color:#000000; position:absolute; left:20px; top:280px; text-indent:25px;}
  6.    #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;}
  7.    #roundList a:hover, #roundList a.active{ background:#ff0000;}
  8.  
  9.    ul.sublist{ margin:0; padding:0; list-style:none; position:relative;}
  10.    ul.sublist li{ width:240px; height:180px; overflow:hidden;  position:absolute; right:-200px; top:145px;}
  11.    ul.sublist li img{ max-width:100%;}

  

How to Create Custom Banner Rotating Image with Text Slider in JQuery and css3 -- w3web.net

 

Further post that would you like to learn in Salesforce

 

 

 

FAQ (Frequently Asked Questions)

How do you rotate an image in JavaScript?

When you need to rotate images using JavaScript, you need to add the transform: rotate(x) CSS style to the image element you want to rotate. To rotate the image, you can select the element using document.

What is a rotating banner?

A rotating banner, also called a front-page carousel, is a series of images that rotate on the homepage of website.

How do you rotate an element in JavaScript?

An element can be rotated 90 degrees by using the transform property. This property is used to move, rotate, scale and others to perform various kinds of transformation to elements. The rotate() transformation function can be used as the value to rotate the element.

Related Topics | You May Also Like

 
Note:: – You will get an email, so put correct email and mobile number and BEGIN YOUR JOURNEY from Today!
 
 
  

Our Free Courses →

👉 Get Free Course →

📌 Salesforce Administrators

📌 Salesforce Lightning Flow Builder

📌 Salesforce Record Trigger Flow Builder

👉 Get Free Course →

📌 Aura Lightning Framework

📌 Lightning Web Component (LWC)

📌 Rest APIs Integration



Hi, This is Vijay Kumar behind the admin and founder of w3web.net. I am a senior software developer and working in MNC company from more than 8 years. I am great fan of technology, configuration, customization & development. Apart of this, I love to write about Blogging in spare time, Working on Mobile & Web application development, Salesforce lightning, Salesforce LWC and Salesforce Integration development in full time. [Read full bio] | | The Sitemap where you can find all published post on w3web.net

Leave a Comment