Forums

  • # January 17, 2013 at 8:34 am

    Here is the current code, using pixels. It animates just fine.

    fontSize: $(‘span.heart’).css(‘fontSize’) == ‘150px’ ? ’50px’ : ‘150px’}, 500, animateHeart);

    I tried using ems like this. But the animation does not work.

    fontSize: $(‘span.heart’).css(‘fontSize’) == ‘2em’ ? ‘1em’ : ‘2em’}, 500, animateHeart);

    http://codepen.io/jessecfisher/pen/HcdiL

    Thanks!

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.

icon-anchoricon-closeicon-emailicon-linkicon-logo-staricon-menuicon-nav-guideicon-searchicon-staricon-tag