W3C home > Mailing lists > Public > www-style@w3.org > November 2005

'display' attribute and transition effects in CSS

From: Andrew Fedoniouk <news@terrainformatica.com>
Date: Sat, 5 Nov 2005 16:59:51 -0800
Message-ID: <033b01c5e26d$64b7d8d0$3201a8c0@Terra>
To: <www-style@w3.org>

(Thoughts aloud, not more)

I am experimenting with the way of defining transition dynamic effects in 

As an example: simple blend effect - gradual blending from one state to 

Screenshot of what I mean is here:

http://terrainformatica.com/htmlayout/images/animation-blend.jpg and another 

They are taken when mouse is moving over row of "leds" - <img>es:

Style of such IMGes defined as

   transition: blend;  /* experimental attribute */

When changing styles in runtime e.g. on :hover I am detecting
change of 'transition' attribute and start animation
(in both directions : mouse-in and mouse-out).

This works but I've got chiken-egg problem in the implementation
of transition:slide effect with 'display' attribute.

Let's say we want to have a collapsing item with transition:

div p { display:none;  }
div:hover p { display:block; transition:slide; }

   <p>collapsing content</p>

So when mouse leaves the div it starts gradualy hide <p> element.

The problem is simple: to draw intermediate states I need to know
element model - block, inline-block, etc. but it is  already set to "none".

Problem with the 'display' also arises in other places when it is used
to show/hide elements in normal flow.

I am thinking that it would be nice if instead of display:none we would
have something like visibility:none;
this will allow to retain display model information and do what
dispaly:none does currently.

Andrew Fedoniouk.
Received on Sunday, 6 November 2005 01:00:00 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:21 UTC