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

CSS syntax #2

Open
yi-gu opened this issue Jun 27, 2019 · 0 comments
Open

CSS syntax #2

yi-gu opened this issue Jun 27, 2019 · 0 comments
Assignees

Comments

@yi-gu
Copy link
Owner

yi-gu commented Jun 27, 2019

Based on the explainer, a possible syntax could be:

@group_effect my_group {
  type: sequence;
  duration: 100ms;
}
@keyframe child1 {
  group: my_group;
  0% {
    top: 0;
  100% {
    top: 100px;
}
@keyframe child2{
  group: my_group;
  0% {
    top: 100px;
  100% {
    top: 200px;
}

The problem is that the timing information is not specified in @keyframe.
An alternative solution would be having lists of keyframes and timings in the div description.

@yi-gu yi-gu self-assigned this Jun 27, 2019
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