How to create transitions effects of animated slideshow to display text from different direction show/hide based on mouse hover uses of “-webkit-transition:all 0.1s linear” property of css3 without javascript/JQuery | How do you use transition in CSS to display the text and images for delay, scroll and animated CSS without jQuery and Javascript

865 views

Hey guys, today in this post we are going to learn about How to create transitions effects of animated slideshow to display text from different direction show/hide based on mouse hover uses of “-webkit-transition:all 0.1s linear” property of css3 without javascript/JQuery.

CSS transitions allows you to change property values smoothly, over a given duration.

Mouse over the element below to see a CSS transition effect:-

Why Should You Schedule Meeting?

🎯 If You Are Facing Any Of These 6 Challenges. Schedule Meeting With Me.

  • Learn Salesforce Development
  • Career Confusion
  • No Interview Call
  • Low Salary
  • No Promotion/Growth
  • No Finding New Job Opportunity
  • Why you stucking from past so many years in same company?

 
  • transition
  • transition-delay
  • transition-duration
  • transition-property
  • transition-timing-function

To create a transition effect, you must specify two things:-

  • the CSS property you want to add an effect to
  • the duration of the effect

The transition-timing-function property specifies the speed curve of the transition effect. To know more details about CSS Transitions, Click Here..

Files we used to create CSS transitions effect in HTML5 →

HTML File animate-translate.html HTML file to create CSS transitions effect in for the text show/hide animation.(LWC)
animate-style.css Style CSS It is used to create transitions effects of animated slideshow of text without Javascript/Jquery in HTML5.

 

 

Final Output →

animated slideshow transitions in css -- w3web.net

 

You can download file directly from github by Click Here.

 

Other related post that would you like to learn in Salesforce

 

  • Find the below steps ▾

 

Create HTML File →

Step 1:- Create HTML File : animate-translate.html

  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=utf-8" />
  5. <title>Animate Hover</title>
  6. <link href="css/animate-style.css" rel="stylesheet" type="text/css" />
  7. </head>
  8.  
  9. <body>
  10. <div class="view">
  11.    <div class="mask1">
  12.    		<div class="content">
  13.             <h1>Welcome to home page</h1>
  14.             <p>This is default description. This is default description. This is default description.</p>
  15.             <a href="https://www.w3web.net/" target="_blank" rel="noopener noreferrer">read more...</a>
  16.         </div>
  17.    </div>
  18. </div>
  19.  
  20. <div class="view">
  21.    <div class="mask2">
  22.    		<div class="content">
  23.             <h1>Welcome to home page</h1>
  24.             <p>This is default description. This is default description. This is default description.</p>
  25.             <a href="https://www.w3web.net/" target="_blank" rel="noopener noreferrer">read more...</a>
  26.         </div>
  27.    </div>
  28. </div>	
  29.  
  30. <br/><br/>
  31.    <!--Start RelatedTopics Section-->
  32. <div style="border:1px #ddd solid; padding:10px; background:#eee; margin:40px 0; overflow:hidden; clear:both;">
  33.  
  34.             <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>
  35.  
  36.             <br/><br/>
  37.             <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>
  38.             <div style="display:block; overflow:hidden;"> 
  39.                 <div style="width: 50%; float:left; display:inline-block">
  40.                     <ul style="list-style-type: square; font-size: 16px; margin: 0 0 0 54px; padding: 0;"> 
  41.                         <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>
  42.                         <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>
  43.                         <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>
  44.                         <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>
  45.                         <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>
  46.                     </ul>
  47.             </div>
  48.  
  49.             <div style="width: 50%; float:left; display:inline-block">
  50.                     <ul style="list-style-type: square; font-size: 16px; margin: 0 0 0 54px; padding: 0;"> 
  51.                         <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>
  52.                         <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>
  53.                         <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>
  54.                         <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>
  55.                         <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>
  56.                     </ul>
  57.                 </div>
  58.                <div style="clear:both;"></div> 
  59.                <br/>
  60.                 <div class="youtubeIcon">
  61.                     <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>
  62.                 </div>
  63.     </div>
  64.  
  65. </div>
  66.  
  67.   <!--End RelatedTopics Section-->
  68. </html>

 

Create a separate folder for Style CSS →

Step 2:- Create HTML Style CSS: css/animate-style.css

  1.    body{ margin:0; padding:20px; font-family:Arial, Helvetica, sans-serif; font-size:16px; color:#333333;}
  2.  
  3. /*mask1*/
  4. .view{ width:300px; height:150px; border:1px #ccc solid; background:#eee; margin:0 15px 20px 0; position:relative; overflow:hidden; }
  5. .view .mask1{ height:150px; width:300px; background:rgba(200,0,0,0.1); -webkit-transition:all 0.2s linear; opacity:0;} 	
  6. .view .mask1 h1{ margin:0; padding:0; font-size:17px; color:#FF0000; padding:0 0 2px 0; -webkit-transform:translateX(300px); -webkit-transition:all 0.2s linear; opacity:0;}
  7. .view .mask1 p{ margin:0; padding:0; font-size:15px; color:#333; padding:0 0 10px 0; -webkit-transform:translateX(-300px); -webkit-transition:all 0.2s linear; opacity:0;} 
  8. .view .mask1 a{ text-decoration:none; padding:3px 10px; display:inline-block; color:#fff; background:#009999; -webkit-transform:translateY(-300px); -webkit-transition:all 0.2s linear; opacity:0;}
  9. .content{ padding:20px 0 0 20px;}
  10.  
  11. .view .mask1:hover{  opacity:1;}
  12. .view:hover .mask1 h1{ -webkit-transform:translateY(0px);  -webkit-transition:all 0.1s linear; opacity:1; -webkit-transition-delay:1s;}
  13. .view:hover .mask1 p{ -webkit-transform:translateY(0px);  -webkit-transition:all 0.2s linear; opacity:1; -webkit-transition-delay:2s;}
  14. .view:hover .mask1 a{ -webkit-transform:translateY(0px);  -webkit-transition:all 0.3s linear; opacity:1; -webkit-transition-delay:3s;}
  15.  
  16.  
  17. /*mask2*/
  18. .view{ width:300px; height:150px; float:left; border:1px #ccc solid; background:#eee; margin:0 15px 20px 0; position:relative; overflow:hidden; }
  19. .view .mask2{ height:150px; width:300px; background:rgba(200,0,0,0.1); -moz-transition:all 0.2s linear; -moz-transform:translateX(300px) ; opacity:1;} 	
  20. .view .mask2 h1{ margin:0; padding:0; font-size:17px; color:#FF0000; padding:0 0 2px 0; -webkit-transform: translateY(-100px);   -webkit-transition:all 0.2s linear; opacity:1;  position: relative; }
  21. .view .mask2 p{ margin:0; padding:0; font-size:15px; color:#333; padding:0 0 10px 0; -webkit-transform:translateX(600px); -webkit-transition:all 0.2s linear;} 
  22. .view .mask2 a{ text-decoration:none; padding:3px 10px; display:inline-block; color:#fff; background:#009999; -webkit-transform:translateY(600px); -webkit-transition:all 1s linear;}
  23. .content{ padding:20px 0 0 20px;}
  24.  
  25. .view .mask2:hover{  -moz-transform:translateX(0px);}
  26. .view:hover .mask2 h1{-webkit-transform: scale(2,2); -webkit-transition:all 0.5 linear; -webkit-transform: translateY(0);}
  27. .view:hover .mask2 p{-webkit-transform:translateX(0px);}
  28. .view:hover .mask2 a{-webkit-transform:translateY(0px);}
  29.  
  30. /*bounce up*/
  31.  
  32. .myAnimation {
  33. 	clear: both;
  34.     width: 100px;
  35.     height: 100px;
  36.     background-color: red;
  37.     position: relative;
  38.     -webkit-animation: myfirst 2s linear 1s infinite alternate;
  39.  
  40. }
  41.  
  42. .myslide{width: 50px; height: 50px; position: relative; border: 1px #ff0000 solid; background: #ff0000; border-radius: 100px; -webkit-animation:slidefirst 3s linear 1s infinite alternate;}
  43.  
  44.  
  45. /*@-webkit-keyframes myfirst {
  46.     0%   {background-color:red; left:0px; top:0px;}
  47.     25%  {background-color:yellow; top:-200px; opacity: 0;}
  48.     50%  {background-color:blue; top:0px; opacity: 1;}
  49.     75%  {background-color:green; top:-200px; opacity: 0;}
  50.     100% {background-color:red; top:0px; opacity: 1;}
  51. }*/
  52.  
  53. @-webkit-keyframes myfirst {
  54.     0%   {background-color:red; top:0px;}
  55.     25%  {background-color:red; -webkit-transform:translateY(-200px); opacity: 0;}
  56.     50%  {background-color:red; -webkit-transform:translateY(0px); opacity: 1;}
  57.     75%  {background-color:red; -webkit-transform:translateY(-200px); opacity: 0;}
  58.     100% {background-color:red; -webkit-transform:translateY(0px); opacity: 1;}
  59. }
  60.  
  61.  
  62. @-webkit-keyframes slidefirst{
  63. 	0% {-webkit-transform:translateX(0px);}
  64. 	25% {-webkit-transform:translateX(300px); opacity: 0}
  65. 	50% {-webkit-transform:translateX(0px); opacity: 1;}
  66. 	75% {-webkit-transform:translateX(300px); opacity: 0}
  67. 	100% {-webkit-transform:translateX(3000px); opacity: 1;}
  68. }

 
animated slideshow transitions in css -- w3web.net
 
 

Further post that would you like to learn in Salesforce

 

 

 

FAQ (Frequently Asked Questions)

Can you animate with CSS?

CSS animations make it possible to animate transitions from one CSS style configuration to another. Animations consist of two components, a style describing the CSS animation and a set of keyframes that indicate the start and end states of the animation's style, as well as possible intermediate waypoints.

How do you use transition in CSS?

To create a transition effect, you must specify two things: the CSS property you want to add an effect to. the duration of the effect.

How many types of animations are there in CSS?

The animation property is a shorthand property for: animation-name. animation-duration. animation-timing-function.

Related Topics | You May Also Like

 
  

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