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


Groups > comp.lang.javascript > #28049

Re: Interaction between CSS and JS

From "Christoph M. Becker" <cmbecker69@arcor.de>
Newsgroups comp.lang.javascript
Subject Re: Interaction between CSS and JS
Date 2015-06-08 19:59 +0200
Organization solani.org
Message-ID <ml4l69$omg$1@solani.org> (permalink)
References <ee169a03-8897-4861-8e7d-2d8eb0fc1d62@googlegroups.com>

Show all headers | View raw


bit-naughty@hotmail.com wrote:

> OK, as I've said before here, I'm a beginner - for the purposes of
> this post, what I'm trying to do is pretty simple - when I click a
> particular link on a page, I want a blue box to fade onto the screen.
> How do I do that?
> 
> The "box fade", I think I can look at my CSS book for. But how do I
> trigger the animation *when the link is clicked*? Does this have
> anything to do with className?

Indeed, you can use the className property of the respective element to
dynamically assign and/or remove (a) CSS class(es).

For details you may want to refer to
<https://developer.mozilla.org/en-US/docs/Web/API/Element/className>.

-- 
Christoph M. Becker

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


Thread

Interaction between CSS and JS bit-naughty@hotmail.com - 2015-06-08 10:25 -0700
  Re: Interaction between CSS and JS "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2015-06-08 19:44 +0200
  Re: Interaction between CSS and JS "Christoph M. Becker" <cmbecker69@arcor.de> - 2015-06-08 19:59 +0200
    Re: Interaction between CSS and JS Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-06-08 22:18 +0200
      Re: Interaction between CSS and JS "Christoph M. Becker" <cmbecker69@arcor.de> - 2015-06-08 22:35 +0200
        Re: Interaction between CSS and JS Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-06-09 01:06 +0200
  Re: Interaction between CSS and JS dhtml <dhtmlkitchen@gmail.com> - 2015-06-16 15:10 -0700

csiph-web