Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #32536

Re: Rotating something on click

From Osmo Saarikumpu <osmo@weppipakki.com>
Newsgroups comp.lang.javascript
Subject Re: Rotating something on click
Date 2017-02-07 11:09 +0200
Organization A noiseless patient Spider
Message-ID <o7c2ob$3c3$1@dont-email.me> (permalink)
References (1 earlier) <o77uq6$c2v$1@news.albasani.net> <29f0bd65-889c-45f1-bf2f-f5e36713ee44@googlegroups.com> <o79l9e$7h6$1@news.albasani.net> <8e5108ba-40e6-4cc8-bd0e-cfee622b0285@googlegroups.com> <bc9e3b48-2785-484f-af98-4866fb44219e@googlegroups.com>

Show all headers | View raw


On 07/02/2017 09:15, bit-naughty@hotmail.com wrote:
> https://css-tricks.com/controlling-css-animations-transitions-javascript/
>
> In "Manipulating CSS Transitions", it says: "To trigger an element's transition, toggle a class name on that element that triggers it." - could you give me an example of this? It's kind of hard to visualise in my head....

As a rule of thumb, it is best to manipulate classes through the 
className property, as all the style properties can be set in CSS 
(cleaner scripts, easier maintenance). IOW, change the elements class 
instead of it's individual style properties. For syntax examples see e.g.:

http://www.w3schools.com/jsref/prop_html_classname.asp

-- 
Best wishes, Osmo

Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Rotating something on click bit-naughty@hotmail.com - 2017-02-05 10:12 -0800
  Re: Rotating something on click "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2017-02-05 19:16 +0100
  Re: Rotating something on click Martin Honnen <martin.honnen@gmx.de> - 2017-02-05 20:35 +0100
    Re: Rotating something on click bit-naughty@hotmail.com - 2017-02-05 23:07 -0800
      Re: Rotating something on click Martin Honnen <martin.honnen@gmx.de> - 2017-02-06 12:05 +0100
        Re: Rotating something on click bit-naughty@hotmail.com - 2017-02-06 23:09 -0800
          Re: Rotating something on click bit-naughty@hotmail.com - 2017-02-06 23:15 -0800
            Re: Rotating something on click Osmo Saarikumpu <osmo@weppipakki.com> - 2017-02-07 11:09 +0200
          Re: Rotating something on click Osmo Saarikumpu <osmo@weppipakki.com> - 2017-02-07 10:40 +0200
  Re: Rotating something on click "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2017-02-05 13:36 -0800
    Re: Rotating something on click Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2017-02-06 04:58 +0100
  Re: Rotating something on click bit-naughty@hotmail.com - 2017-02-07 03:33 -0800
    Re: Rotating something on click "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2017-02-07 13:04 +0100
      Re: Rotating something on click "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2017-02-07 13:10 +0100
        Re: Rotating something on click "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2017-02-07 13:19 +0100
          Re: Rotating something on click "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2017-02-07 13:38 +0100
      Re: Rotating something on click bit-naughty@hotmail.com - 2017-02-07 23:52 -0800

csiph-web