rcaferati / react-awesome-slider

React content transition slider. Awesome Slider is a 60fps, light weight, performant component that renders an animated set of production ready UI general purpose sliders with fullpage transition support for NextJS and GatsbyJS. 🖥️ 📱
https://fullpage.caferati.me
MIT License
2.94k stars 295 forks source link

Can't get CSS change on Buttons(<button data-index="1">1</button>...) when change the slide #144

Closed psyopus69 closed 3 years ago

psyopus69 commented 4 years ago

Dear Rafael, thanks a lot for your work! Can you help me with next problem: when i change slide, i don't see any color effects on buttons (with links on slides) my code:

import AwesomeSlider from 'react-awesome-slider'; import AwsSliderStyles from 'react-awesome-slider/src/styles'; import AwesomeSliderStyles from 'react-awesome-slider/src/styled/fold-out-animation/index'; import React from "react";

const Test = (props) => { return <AwesomeSlider animation="foldOutAnimation" cssModule={[AwsSliderStyles, AwesomeSliderStyles]}>

<div data-src="/path/to/image-1.jpg" />
<div data-src="/path/to/image-2.jpg" />

; };

export { Test, };

screenshot screen