Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Awesome Slider Does Not Work #222

Open
Pietro-Putelli opened this issue Feb 14, 2023 · 0 comments
Open

Awesome Slider Does Not Work #222

Pietro-Putelli opened this issue Feb 14, 2023 · 0 comments

Comments

@Pietro-Putelli
Copy link

I have followed the instructions to implement, as you can see from my code, but it doesn't display anything.

import AwesomeSlider from "react-awesome-slider";
import "react-awesome-slider/dist/custom-animations/cube-animation.css";

const slider = (
  <AwesomeSlider animation="cubeAnimation">
    <div
      className="bg-slate-100"
      data-src="https://images.unsplash.com/photo-1533422902779-aff35862e462?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxzZWFyY2h8Mnx8aG9yaXpvbnRhbHxlbnwwfHwwfHw%3D&w=1000&q=80"
    />
  </AwesomeSlider>
);

const App = () => {
  return (
    <div className="w-screen h-screen bg-slate-900">
      <slider />
    </div>
  );
};

export default App;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant