freetype-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ft-devel] [GSoC] [Doubt] CSS Sprite animation


From: Werner LEMBERG
Subject: Re: [ft-devel] [GSoC] [Doubt] CSS Sprite animation
Date: Thu, 17 Aug 2017 06:57:02 +0200 (CEST)

> I've been trying a lot to change the CSS keyframe animation values
> using pure javascript. I wasn't able to find any solution(s).
> 
> This is what I want to do.
> 
> @-webkit-keyframes play {
>   100% { background-position: -480px; }
> }

[You also want to use the CSS3 keyword address@hidden' so that it works
 with MS Edge 10 – but you certainly know that :-) ]

> Lets say above block is from a CSS file.  I want to be able to
> change the value -480 to another number with just a button click.
> This makes the transitions work.
> 
> This can be done using jQuery.  But I wanted to do in pure
> javascript.  Is there any other solution?

I don't know.

> Can I use jQuery?

Yes!


    Werner


reply via email to

[Prev in Thread] Current Thread [Next in Thread]