search

Home  >  Q&A  >  body text

angular.js - How to achieve the fixed sliding effect of Angularjs on the left category bar in mobile?

As shown in the picture, the effect of JD’s category column is similar to Taobao’s category. They both use the form of transform
translateY(-877px) instead of using fixed directly. If you want to use it in Angular, It seems like I need to use commands, right? Do I need to capture the gesture direction in the area and dynamically change the value of translateY?
Can you give me some ideas?

迷茫迷茫2820 days ago596

reply all(2)I'll reply

  • 習慣沉默

    習慣沉默2017-05-15 16:58:36

    Angular animate api, but the implementation of each version is different

    reply
    0
  • 大家讲道理

    大家讲道理2017-05-15 16:58:36

    Have you achieved this effect? How is it achieved? Can you give me some guidance?

    reply
    0
  • Cancelreply