制作一个slider动画


 使用react-slick制作一个切换卡片的React组件。

import Slider from "https://cdn.skypack.dev/react-slick"

class ReactSlider extends React.Component {
  render() {
    const settings = {
        dots: true,
        infinite: true,
        speed: 500,
        slidesToShow: 1,
        slidesToScroll: 1,
        useCSS: true,
        useTransform: true
      }
    return (
      
barbarian
Level 4
The Barbarian
The Barbarian is a kilt-clad Scottish warrior with an angry, battle-ready expression, hungry for destruction. He has Killer yellow horseshoe mustache.
archer
Level 5
The Archer
The Archer is a female warrior with sharp eyes. She wears a short, light green dress, a hooded cape, a leather belt and an attached small pouch.
giant
Level 5
The Giant
Slow, steady and powerful, Giants are massive warriors that soak up huge amounts of damage. Show them a turret or cannon and you'll see their fury unleashed!
) } } ReactDOM.render(, document.getElementById("root"));