Gathering detailed insights and metrics for react-awesome-slider-fw
Gathering detailed insights and metrics for react-awesome-slider-fw
Gathering detailed insights and metrics for react-awesome-slider-fw
Gathering detailed insights and metrics for react-awesome-slider-fw
Extended version of React Media Carousel. Awesome Slider is a 60fps, light weight, performant component that renders an animated set of production ready UI general purpose sliders.
npm install react-awesome-slider-fw
Typescript
Module System
Node Version
NPM Version
60
Supply Chain
92.2
Quality
72.1
Maintenance
100
Vulnerability
98.9
License
JavaScript (74.74%)
CSS (25.26%)
Total Downloads
5,460
Last Day
4
Last Week
19
Last Month
66
Last Year
873
MIT License
1 Stars
307 Commits
12 Branches
1 Contributors
Updated on Apr 15, 2021
Minified
Minified + Gzipped
Latest Version
2.0.3
Package Id
react-awesome-slider-fw@2.0.3
Unpacked Size
230.79 kB
Size
46.45 kB
File Count
73
NPM Version
6.13.0
Node Version
10.15.3
Cumulative downloads
Total Downloads
Last Day
-50%
4
Compared to previous day
Last Week
-13.6%
19
Compared to previous week
Last Month
4.8%
66
Compared to previous month
Last Year
59.9%
873
Compared to previous year
2
44
react-awesome-slider
is a 60fps, extendable, highly customizable, production ready React Component that renders a media (image/video) gallery slider/carousel.
For using the full-screen navigation HOCs please checkout the GatsbyJS
and NextJS
examples on the ras fullpage strategies repository.
You can access the demo for the FULLPAGE navigation here: fullpage.caferati.me
1import AwesomeSlider from 'react-awesome-slider'; 2import 'react-awesome-slider/dist/styles.css'; 3 4const slider = ( 5 <AwesomeSlider> 6 <div>1</div> 7 <div>2</div> 8 <div>3</div> 9 <div>4</div> 10 </AwesomeSlider> 11);
For analysing how the animations are built, please check out to this folder. Collaborations with new creative ones are welcome, just open a PR.
Checkout more recipes on the styled folder. For more animation recipes check out the styled folder.
1import AwesomeSlider from 'react-awesome-slider'; 2import 'react-awesome-slider/dist/custom-animations/cube-animation.css'; 3 4const slider = ( 5 <AwesomeSlider animation="cubeAnimation"> 6 <div data-src="/path/to/image-0.png" /> 7 <div data-src="/path/to/image-1.png" /> 8 <div data-src="/path/to/image-2.jpg" /> 9 </AwesomeSlider> 10);
Checkout the CSS customizer
at my portfolio
Import the component directly into your Figma project.
npm install --save react-awesome-slider
or
yarn add react-awesome-slider
1import AwesomeSlider from 'react-awesome-slider'; 2import 'react-awesome-slider/dist/styles.css'; 3 4const slider = ( 5 <AwesomeSlider 6 media={[ 7 { 8 source: '/path/to/image-0.png', 9 }, 10 { 11 source: '/path/to/image-1.png', 12 }, 13 { 14 source: '/path/to/image-2.png', 15 }, 16 ]} 17 /> 18);
1import AwesomeSlider from 'react-awesome-slider'; 2import AwesomeSliderStyles from 'react-awesome-slider/src/styles'; 3 4const slider = ( 5 <AwesomeSlider cssModule={AwesomeSliderStyles}> 6 <div data-src="/path/to/image-0.png" /> 7 <div data-src="/path/to/image-1.png" /> 8 <div data-src="/path/to/image-2.jpg" /> 9 </AwesomeSlider> 10);
Checkout more recipes on the styled folder. For more animation recipes check out the styled folder.
Note that on v3 there's an adition of the animation
prop. The animation name is the cammel-cased version of the animation css file.
1import AwesomeSlider from 'react-awesome-slider'; 2import CoreStyles from 'react-awesome-slider/src/core/styles.scss'; 3import AnimationStyles from 'react-awesome-slider/src/styled/fold-out-animation/fold-out-animation.scss'; 4 5const slider = ( 6 <AwesomeSlider 7 animation="foldOutAnimation" 8 cssModule={[coreStyles, animationStyles]} 9 > 10 <div data-src="/path/to/image-0.png" /> 11 <div data-src="/path/to/image-1.png" /> 12 <div data-src="/path/to/image-2.jpg" /> 13 </AwesomeSlider> 14);
1import AwesomeSlider from 'react-awesome-slider'; 2import withAutoplay from 'react-awesome-slider/dist/autoplay'; 3import 'react-awesome-slider/dist/styles.css'; 4 5const AutoplaySlider = withAutoplay(AwesomeSlider); 6 7const slider = ( 8 <AutoplaySlider 9 play={true} 10 cancelOnInteraction={false} // should stop playing on user interaction 11 interval={6000} 12 > 13 <div data-src="/path/to/image-0.png" /> 14 <div data-src="/path/to/image-1.png" /> 15 <div data-src="/path/to/image-2.jpg" /> 16 </AutoplaySlider> 17);
1import AwesomeSlider from 'react-awesome-slider'; 2import withCaption from 'react-awesome-slider/dist/captioned'; 3import 'react-awesome-slider/dist/styles.css'; 4import 'react-awesome-slider/dist/captioned.css'; 5 6const CaptionedSlider = withCaption(AwesomeSlider); 7 8const component = ( 9 <CaptionedSlider 10 startupScreen={StartupScreen} 11 cssModule={CaptionedStyles} 12 screens={[ 13 { 14 backgroundColor: '#4a9c8c', 15 media: '/images/series/ricknmorty-3.png', 16 caption: 'I want to see what you got.', 17 }, 18 { 19 backgroundColor: '#4a9c8c', 20 media: '/images/series/ricknmorty-3.png', 21 caption: "The answer is -- Don't think about it.", 22 }, 23 ]} 24 /> 25);
fillParent
propAttributes | Type | Default | Description |
---|---|---|---|
className | string | null | Add a className to the component container |
cssModule | object | null | CSS Module object if you choose to use this styling approach |
name | string | awesome-slider | Unique name of the rendered slider. Useful if you're navigating between multiple pages that contains a slider component. |
selected | number | 0 | Sets the current active/selected screen |
bullets | boolean | true | When set to true show the bullet controls underneath the slider |
organicArrows | boolean | true | When set to true show the organic arrow next and prev controls |
fillParent | boolean | false | When set to true the slider will fill the dimensions of the parent element. Usefull for using it in full-screen mode. |
infinite | boolean | true | When set to true the slider will behave on an infinite fashion returing to the first slide after the last one. |
startupScreen | node | null | Set's the startup screen component to be shown before the first screen is loaded. It works like a pre-loading screen. |
startup | boolean | true | Used together with startupScreen controls whether or not the startupScreen should auto-start. |
transitionDelay | number | 0 | Sets a delay in ms between the slide transitions. Useful if you're waiting for an exit animation to finish in the current slide. |
mobileTouch | boolean | true | When set to true activates a swipe touch effect to navigate on mobile devices. |
buttons | boolean | true | Should render the default left and right navigation buttons. |
buttonContentRight | node | null | Add content as children of the right button. |
buttonContentLeft | node | null | Add content as children of the left button. |
customContent | node | null | Render extra content at the same level of the default buttons. Useful if you want to add an extra slider navigation layer or a fixed overlay element |
onFirstMount | function | null | Called on componentDidMount passing the slider reference as an argument |
onTransitionEnd | function | null | Called on at the slider transition end event passing the slider reference as an argument |
onTransitionStart | function | null | Called on slider transition start passing the slider reference as an argument |
onTransitionRequest | function | null | Called when a user interacts with the slider navigation (arrows or bullets) |
If you have an idea for a missing feature or animation just craft your own hoc feature
or animation style
and send it up via PR to the src/components
folder.
MIT. Copyright (c) 2018 Rafael Caferati.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 0/30 approved changesets -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
no SAST tool detected
Details
Reason
security policy file not detected
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
project is not fuzzed
Details
Reason
125 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-05-05
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More