Skip to content

Re enable rotation button transition #2791

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

Merged
merged 1 commit into from
Jan 28, 2015

Conversation

fredj
Copy link
Member

@fredj fredj commented Oct 3, 2014

The opacity transition was broken with #2782

Tested with FF 32 and chrome 36

@tonio
Copy link
Member

tonio commented Oct 3, 2014

Seems to work (-:
Even if I don't get why you don’t need to set transition-delay. (see good explanation)

@fredj fredj force-pushed the rotate-css-transition branch from 9817186 to 81e8250 Compare October 6, 2014 07:06
@fredj
Copy link
Member Author

fredj commented Oct 6, 2014

Thanks for the link, very interesting.
I've updated the code to add the delay

@@ -53,11 +53,11 @@
.ol-rotate {
top: .5em;
right: .5em;
transition: opacity .25s;
transition: opacity .25s linear, visibility 0s linear .25s;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

delay has to be reset (& just for visibility): I thought of something like:

.ol-rotate {
  transition: opacity .25s linear, visibility 0s linear;
}
.ol-rotate.ol-hidden {
  transition: opacity .25s linear, visibility 0s linear .25s;
}

@tschaub tschaub modified the milestone: v3.2.0 Dec 22, 2014
@elemoine
Copy link
Member

Please merge.

The opacity transition was broken with openlayers#2782
@fredj fredj force-pushed the rotate-css-transition branch from 81e8250 to aa23a7b Compare January 28, 2015 08:09
fredj added a commit that referenced this pull request Jan 28, 2015
Re enable rotation button transition
@fredj fredj merged commit 2ad93b9 into openlayers:master Jan 28, 2015
@fredj fredj deleted the rotate-css-transition branch January 28, 2015 08:18
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

Successfully merging this pull request may close these issues.

4 participants