Skip to content

CSS syntax #2

@yi-gu

Description

@yi-gu

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions