Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nested "delayed" class #16

Open
y-yu opened this issue Oct 8, 2011 · 0 comments
Open

nested "delayed" class #16

y-yu opened this issue Oct 8, 2011 · 0 comments

Comments

@y-yu
Copy link

y-yu commented Oct 8, 2011

I want to make nested "delayed" class.

`


  • hogehoge

    • foofoo

`

When "foo" is shown,
"hoge" is added "displayed" class, and "foo" is added "current" class.

`

  • hoge
    • foo
`

But, class "delayed", "displayed" and "current" use "opacity" property.
"opacity" property influence child node.
Then

`

  • hoge
    • foo
`

result

  • hoge
    • foo

It does NOT work on Chorome, Opera and Safari.
"foo" is shown by "opacity 0.3".

But, I designate "color" property by "rgba".

`

  • hoge
    • foo
`

result

  • hoge
    • foo

And, I use "visibility" property in order to appear characters.
So I change "slideshow.css".

.delayed,
.delayed-children > * {
visibility: hidden;
color: rgba(0,0,0,0);

-webkit-transition:1s color;

/*-moz-transition:.7s opacity;
-o-transition:.7s opacity;
transition:.7s opacity;
*/

}

.delayed.current,
.delayed-children > .current,
.delayed.displayed.non-dismissable,
.delayed-children > .displayed.non-dismissable {
visibility: visible;
color: rgba(255,255,255,1);
}

.delayed.displayed,
.delayed-children > .displayed {
visibility: visible;
color: rgba(255,255,255,0.3);
}

It works on Safari.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant