Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

logo ticker javascript

.scrolling_banner {
  --banner-width: 300px;
  --banner-height: 200px;
  --banner-margin-bottom: 10px;
  --banner-margin-right: 5px;
  --banner-items: 6;
  --banner-duration: 2s;
}

.container {
  width: 100%;
  overflow: hidden;
}

.scrolling_banner {
  height: var(--banner-height);
  width: calc((var(--banner-width) + var(--banner-margin-right)) * var(--banner-items));
  margin-bottom: calc(var(--banner-margin-bottom)/ 2);
  font-size: 0
}

.scrolling_banner * {
  margin-bottom: var(--banner-margin-bottom);
  margin-right: var(--banner-margin-right);
  height: var(--banner-height);
  width: var(--banner-width);
}

.first {
  -webkit-animation: bannermove var(--banner-duration) linear infinite;
  -moz-animation: bannermove var(--banner-duration) linear infinite;
  -ms-animation: bannermove var(--banner-duration) linear infinite;
  -o-animation: bannermove var(--banner-duration) linear infinite;
  animation: bannermove var(--banner-duration) linear infinite
}

@keyframes bannermove {
  0% {
    margin-left: 0
  }
  100% {
    margin-left: calc((var(--banner-width) + var(--banner-margin-right)) * -1)
  }
}
Comment

logo ticker html javascript

<div class="container">
  <div class="scrolling_banner">
    <img class="first" src="http://bvivaloyalty.com/wp-content/uploads/2016/12/poseidon.png">
    <img src="http://bvivaloyalty.com/wp-content/uploads/2016/12/poseidon.png">
    <img src="http://bvivaloyalty.com/wp-content/uploads/2016/12/poseidon.png">
    <img src="http://bvivaloyalty.com/wp-content/uploads/2016/12/poseidon.png">
    <img src="http://bvivaloyalty.com/wp-content/uploads/2016/12/poseidon.png">
    <img src="http://bvivaloyalty.com/wp-content/uploads/2016/12/poseidon.png">
  </div>
</div>
Comment

PREVIOUS NEXT
Code Example
Javascript :: declarar function javascript 
Javascript :: puppeeter pdf desktop 
Javascript :: unable to get local issuer certificate npm 
Javascript :: get-the-current-directory-name-in-javascript 
Javascript :: discord.js send dm to specific user 
Javascript :: override submit button javascript 
Javascript :: javascript online programming test 
Javascript :: aws lambda create 
Javascript :: js unslick 
Javascript :: pass control id to javascript function 
Javascript :: which element occours when a DOM element recieve the coursor 
Javascript :: a7aad 
Javascript :: remove anything through bubbling 
Javascript :: threee.js camera to point 
Javascript :: javascript nested arrays stackoverflow 
Javascript :: Javascript Ternary operator | Light/Dark Theme 
Javascript :: how to show name of inactive also in react-navigation-material-bottom-tabs 
Javascript :: Set object Relation with Array objects javascript 
Javascript :: html5 web component 
Javascript :: redux cannot read properties state) = state.useSelector 
Javascript :: how scroll bottom simplebar in vue js 
Javascript :: expression expected.ts switch case 
Javascript :: es6 syntax 
Javascript :: Getting current location from browser Chrome and Firefox console 
Javascript :: what is react-instantsearch-dom 
Javascript :: react using pre new Date 
Javascript :: Class Has a Constructor Function 
Javascript :: _.isEqual Underscore Example 
Javascript :: disable submit button until form is fully validated 
Javascript :: react native picker select placeholder color 
ADD CONTENT
Topic
Content
Source link
Name
4+3 =