V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
aleen42
V2EX  ›  程序员

React 的童鞋看过来,做了个 Slider 组件

  •  
  •   aleen42 ·
    aleen42 · 2016-12-09 17:21:00 +08:00 · 2276 次点击
    这是一个创建于 2700 天前的主题,其中的信息可能已经有所发展或是发生改变。

    slider

    该 React 组件主要是用于 slider bar ,及左右轮换。

    二话不说,先看 Demo: http://codepen.io/aleen42/pen/LbrqBO/

    若喜欢,继续看怎么去集成: https://github.com/aleen42/PersonalWiki/blob/master/Programming/JavaScript/Framework/react/slider/slider.md

    若是集成过程中有任何的疑惑,请不用怕。直接 issue 我的项目,楼主会在一天内回答你的问题。 Thx 🍕

    6 条回复    2016-12-10 11:34:41 +08:00
    gdsagdada
        1
    gdsagdada  
       2016-12-09 17:40:18 +08:00
    楼主你这么强👍👍👍👍👍👍👍👍,大家知道吗
    aleen42
        2
    aleen42  
    OP
       2016-12-09 17:45:15 +08:00
    @gdsagdada 💀渣渣一枚
    wwlweihai
        3
    wwlweihai  
       2016-12-10 00:32:28 +08:00
    为什么不用现成的呢? https://github.com/akiran/react-slick
    aleen42
        4
    aleen42  
    OP
       2016-12-10 11:22:17 +08:00
    @wwlweihai 我喜歡自己設計,嘻嘻
    aleen42
        5
    aleen42  
    OP
       2016-12-10 11:23:00 +08:00
    @wwlweihai 而且,從實踐中學習才是可貴的
    wwlweihai
        6
    wwlweihai  
       2016-12-10 11:34:41 +08:00   ❤️ 1
    恩,是的。写一遍,技术完全学会,攒!
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2079 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 01:44 · PVG 09:44 · LAX 18:44 · JFK 21:44
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.