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 :: for await range javascript 
Javascript :: angular input .valueChanges.subscribe value 
Javascript :: filtering buttons parseint javascript 
Javascript :: rollup js global installation 
Javascript :: How to show content-type:image/jpg in react 
Javascript :: rest client vs code 
Javascript :: mysql timestamp to time/days ago function 
Javascript :: asynchronous file read 
Javascript :: concatenate to require string in solidity ethereum 
Javascript :: how to combine folder for render in express js 
Javascript :: start 
Javascript :: read pdf as array bytes using fetch 
Javascript :: hide show jquery 
Javascript :: filter a characters from words in javascript array 
Javascript :: Text with prop value is rendered The component renders variable text based on a string prop. We test that the component renders the value of the passed prop. 
Javascript :: this.$moment.tz.guess() not working mozilla 
Javascript :: on device size changes react-multi-carousel items not showing 
Javascript :: Implementing basic set operations set object javascript 
Javascript :: create random salt js 
Javascript :: What can I put in the parentheses of an if statement to make it false 
Javascript :: nuxtjs install sassloader 
Javascript :: how to auto update the local data after update / delete while using useSWR hook in React 
Javascript :: time date utils 
Javascript :: Backbone Render And Initialize 
Javascript :: Last digit of a large number 
Javascript :: I want to filter the below json data by start date and end date, it should return the data between start date and end date, 
Javascript :: volta node list 
Javascript :: s3 getobject not getting large json object 
Javascript :: unreachable code detected javascript 
Javascript :: react native password qwerty 
ADD CONTENT
Topic
Content
Source link
Name
6+7 =