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

Animation: Deprecate combo CSS classes in favor of discrete ones. #300

Merged
merged 1 commit into from
Feb 23, 2015

Conversation

nicksay
Copy link
Contributor

@nicksay nicksay commented Feb 23, 2015

Previously CSS animation classes had to target both the history direction
(forward/back) as well as the animation point (start/end) via a combination
class, even if the properties were shared:

.spf-animate-forward-start .spf-animate-new,
.spf-animate-forward-end   .spf-animate-old,
.spf-animate-reverse-start .spf-animate-new,
.spf-animate-reverse-end   .spf-animate-old {
  opacity: 0;
}

Now, the classes will be split into discrete ones that represent a single
target only:
.spf-animate-forward-start -> .spf-animate-forward.spf-animate-start
.spf-animate-reverse-end -> .spf-animate-reverse.spf-animate-end

This allows less verbose CSS when doing animation that does not change based
on history direction.

Progress on #299.

Previously CSS animation classes had to target both the history direction
(forward/back) as well as the animation point (start/end) via a combination
class, even if the properties were shared:
```
.spf-animate-forward-start .spf-animate-new,
.spf-animate-forward-end   .spf-animate-old,
.spf-animate-reverse-start .spf-animate-new,
.spf-animate-reverse-end   .spf-animate-old {
  opacity: 0;
}
```

Now, the classes will be split into discrete ones that represent a single
target only:
`.spf-animate-forward-start  ->  .spf-animate-forward.spf-animate-start`
`.spf-animate-reverse-end  ->  .spf-animate-reverse.spf-animate-end`

This allows less verbose CSS when doing animation that does not change based
on history direction.

Progress on youtube#299.
@DavidCPhillips
Copy link
Contributor

LGTM

nicksay added a commit that referenced this pull request Feb 23, 2015
Animation: Deprecate combo CSS classes in favor of discrete ones.
@nicksay nicksay merged commit d2d95c5 into youtube:master Feb 23, 2015
@nicksay nicksay deleted the animation-classes branch February 23, 2015 21:38
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.

2 participants