foundation / foundation/motion-ui

Spin CW vs CCW

Open
#76 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
SCSS
Stars
1.2k
Forks
169
PR merge metrics
No merged PRs in 30d

Description

The spin keyframe function seems to generate the same keyframe, no matter what direction I choose for the animation.

So these:

``` sass
@include mui-animation(spin(ccw));
@include mui-animation(spin(cw));
```

results in this:

``` css
.spin-cw {
animation-name: spin-cw-1turn; }
@keyframes spin-cw-1turn {
0% {
transform: rotate(-1turn); }
100% {
transform: rotate(0); } }
.spin-ccw {
animation-name: spin-cw-1turn; }
@keyframes spin-cw-1turn {
0% {
transform: rotate(0); }
100% {
transform: rotate(1turn); } }
```

Wouldn't a CCW rotation be like this?

``` css
@keyframes spin-ccw-1turn {
0% {
transform: rotate(0); }
100% {
transform: rotate(-1turn); } }
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.