Is there a fluent transition possibility for animation font-size in Raphael JS?

前端 未结 4 1170
广开言路
广开言路 2021-02-09 16:25

So far it seems like it is not fluent, but choppy. E.g. if you have one state attribute with font-size: 14 and want to animate to state with font-size: 16, the

4条回答
  •  醉梦人生
    2021-02-09 16:34

    Check out http://www.zachstronaut.com/posts/2009/08/07/jquery-animate-css-rotate-scale.html

    You will be able to see a demo and download a plugin that scales the element. The caveat is that you do not get to explicitly choose the target font-size, but, with a little math, you can write a little plugin to convert the target size to a number to scale by.

    My personal homepage makes use of this plugin on the welcome page, if you want to see another demo.

    Good luck! :)

提交回复
热议问题