LoginSignup
3
2

More than 5 years have passed since last update.

slickでslick-arrowをオリジナル画像に変える一番簡単な方法

Posted at

シンプルにこれで終わりです。

style.css
.slick-prev:before {
  content: "" !important;
}

.slick-prev:after {
  content: url(/assets/arrow_left.png);
}

.slick-next:before {
  content: "" !important;
}

.slick-next:after {
  content: url(/assets/arrow_right.png);
}

ページ内にカルーセルが複数ある場合、ググると逆にハマります。。。

3
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
2