search

Home  >  Q&A  >  body text

javascript - I saw a cool carousel image. Please tell me how to implement it.

I saw that the carousel image on the page https://www.pingxx.com is so cool. How can I achieve the fade-out effect on both sides?

某草草某草草2770 days ago520

reply all(2)I'll reply

  • 为情所困

    为情所困2017-05-18 10:54:10

    -webkit-mask-image:linear-gradient(-90deg,transparent,#000 22%,#000 48%,rgba(0,0,0,.2) 78%,transparent)

    reply
    0
  • 天蓬老师

    天蓬老师2017-05-18 10:54:10

    You can see it by checking the elements yourself

    reply
    0
  • Cancelreply