How to create bottom to top scrolling text using css and jquery | Sanwebcorner

How to create bottom to top scrolling text using css and jquery

In this article i am going to explain how to create scrolling text from bottom to top step by step like marquee with some delay of the section using css and jquery.

This example shows to move the text step by step buttom to top. This was very useful to the websites to display the flash news, clients information, Events sections in differnt manner.

Check the below coding and demo link. I hope this will helpful.


Css Code for Scrolling Text:

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
font-family: 'Sansita', sans-serif;

font-weight:400;
}

.list-aggregate>li>a {
    width: 85%;
    height: 25px;
    line-height: 25px;
    display: block;
    text-align: center;
    margin: 7px auto;
    font-size: 19px;
    overflow: hidden;
}

a{text-decoration:none;}


.list-aggregate>li {
    padding: 10px 0;
    border-bottom: solid 1px #fff;
    -webkit-transition: ease-in-out background-color .15s .05s;
    -o-transition: ease-in-out background-color .15s .05s;
    transition: ease-in-out background-color .15s .05s;
}
ul, li {
    list-style: none;
}


.list-aggregate li { border-bottom-color: #e5e5e5 }

.list-aggregate li a { color: #fff; font-size:20px; font-family: 'Sansita', sans-serif; }

.list-aggregate li a:hover { color: #fff }

.list-aggregate li p { color: #fff;
    padding: 0 10px;
    font-size: 13px;
    text-align: justify;
    font-weight: 400;
    height: 35px;
    line-height: 18px;
    overflow: hidden; }

.list-aggregate li:hover { background-color: #fc6d58 }

Js Code for Scrolling Text:

  $(function(){
  $('#marquee-vertical').marquee();  
  $('#marquee-horizontal').marquee({direction:'horizontal', delay:0, timing:50});  
});

Html Code for Scrolling Text:

<div class="block-hdnews" style="width:345px; margin:35px auto; background-color:#e95546;">
<div class="list-wrpaaer" style="height:380px">
<ul class="list-aggregate" id="marquee-vertical">
<li>
<a href="">Breaking News 1</a>
<p>
Lorem ipsum dolor sit amet, consectetur adipiscing elit.              
</p>
</li>
<li>
<a href="">Breaking News 2</a>
<p>Aliquam consequat nibh in sollicitudin semper. Nam convallis sapien nisi, ac vulputate nisi auctor blandit. Donec tincidunt varius suscipit. </p>
</li>
<li>
<a href="">Breaking News 3</a>
<p>Ut ut felis suscipit sem porta molestie. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae/p>
</li>
<li>
<a href="" title="">Breaking News 4</a>
<p>Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. In hac habitasse platea dictumst. </p>
</li>
</ul>
</div>
</div>

Post a Comment

Labels

360 degree view product image 3d rotate 3d text 3step-form Accordion menu ajax All Browsers Animated Background Gradient animation audio controller auto complete Best accordion menu bootstrap border bounce effect on hover Breadcrumb calculate age by dob calendar Captcha change image on mouse move color chooser countdown Counter on scroll create random number Css css animation css buttons css hover css3 customized upload Button Date picker delete data from table Different scroll speed email otp verification email verifier Embed eventlist Expanding Menu feedbck form flash news section close button full screen menu Google custom search Google Maps Google reCAPTCHA Google site search gradient hide menu Horizontal News ticker Hover Htm Html html dropdown html form html5 html5 form validation Iframe image hover increment decrement textbox value based on select box Javascript Jquery js Layered image effect on mouse hover lock & unlock page scroll marquee marquee with close button mobile number validation mobile otp login Multi-level-drop-down-menu multi-level-form multi-select-checkbox Multi-Step-form Multiple File Upload in PHP mysql News ticker on hover change text to image our team page password generator password strength checker Photoshop PHP php mailer populate html selectbox Popup image on click the link pure css Question type form random number generate Random password Redirect page Based on the select box while submit the form responsive responsive menu responsive popup box Responsive Vertical Time line design rotate image selectbox based on select box simple coming soon page simple countdown based on end date simple typing effect slider sliding tab sms otp login statistic counter on scroll switch tag shape team member Time picker toggle toggle view transparent button underline animation up down slide validation vertical fixed sidebar Webtips whatsapp link website Youtube