Genie Effect Animation in Android

前端 未结 3 414
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-07 15:01

I have requirement of implementing Genie Effect animation shown below.

\"enter

3条回答
  •  囚心锁ツ
    2020-12-07 15:42

    I have a browser solution.

    Check out https://github.com/kamilkp/geniejs

    and http://kamilkp.github.io/ for demo.

    It works in every browser including mobile (not always smoothly on firefox though). It supports Genie Effect transitions in every direction (top, bottom, left, right). It works even if the target html element is a child of some container that has overflow auto or hidden. It is library agnostic itself, but i also wrote a convenience jQuery plugin. And if you also include the html2canvas library in your project, the plugin lets you animate HTML elements with genie effect (expanding example here: http://kamilkp.co.nf/genie/canvas/)

    The only requirement for the browser is that it needs to support CSS transitions. It's a pure javascript + CSS solution.

    PS. You can use Phonegap to create an Android app from a web application.

提交回复
热议问题