ReactAwesome Slider
<AwesomeSlider/>~7KB compressed
React Awesome Slider is a 60fps, extendable, highly customisable, production ready javascript react component that renders an animated set of UI gallery sliders.
Smooth Lettering
And so it is ♪
Just like you said it would be
And so it is ♪
Just like you said it would be
Content Animation
As with the component's container, the content element also has it's own moveRight and moveLeft animation classes. You can use them to control the behaviour of the entering and exiting children elements.
.scss
.aws-sld { &__content { p { transform: translate3d(0, 0, 0); opacity: 1; transition: transform 0.45s cubic-bezier(0.15, 0.3, 0.15, 1), opacity 0.35s ease-out; } p:nth-child(2) { transition-delay: 0.05s, 0.05s; } &--exit { p { transition: transform 0.225s cubic-bezier(0.85, 0, 0.85, 0.7), opacity 0.4s ease-out; } p:nth-child(2) { transition-delay: 0.05s, 0.05s; } } &--moveLeft { p { transform: translate3d(-50px, 0, 0); opacity: 0; } } &--moveRight { p { transform: translate3d(50px, 0, 0); opacity: 0; } } } }
Customisation
Basic customization through the component's props and CSS custom-properties.
Component's global props
- true
- true
- false
CSS Custom Properties
- 60%
- 525ms
- 4px
- 0px
- 40px
- #d9543c
- 10%
- 25%
- transparent
- #ff6347
- #d9543c
- #851515
- 6px