1.0.19 • Published 3 years ago
framer-motion-ticker v1.0.19
Framer Motion Ticker
A simple ticker made with framer-motion
. Infinitely and seamlessly scroll through elements.
Installation
npm install framer-motion-ticker
Basic Usage
import React from 'react';
import Ticker from 'framer-motion-ticker';
function App() {
const colors = ['#632bf3', '#f122c8', '#f16022', '#9ef344', '#44d3f3'];
return (
<div className="App">
<Ticker duration={20}>
{colors.map((item, index) => (
<div
key={index}
style={{
backgroundColor: item,
margin: '5px',
height: '250px',
width: '200px',
}}
/>
))}
</Ticker>
</div>
);
}
export default App;
Examples
Ticker props
props | type | default | description |
---|---|---|---|
duration | number | 10 | duration of one segment |
Using the Ticker example folder
cd example && npm install
npm run dev
1.0.19
3 years ago
1.0.18
3 years ago
1.0.17
3 years ago
1.0.16
3 years ago
1.0.15
3 years ago
1.0.14
3 years ago
1.0.13
3 years ago
1.0.12
3 years ago
1.0.11
3 years ago
1.0.10
3 years ago
1.0.9
3 years ago
1.0.8
3 years ago
1.0.7
3 years ago
1.0.6
3 years ago
1.0.5
3 years ago
1.0.4
3 years ago
1.0.3
3 years ago
1.0.2
3 years ago
1.0.1
3 years ago
0.0.0
3 years ago