加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
transition.scss 976 Bytes
一键复制 编辑 原始数据 按行查看 历史
theBestXH 提交于 2020-10-06 10:00 . first commit
@mixin transition($time) {
will-change: transform;
transition: all $time;
}
@mixin transform($type) {
opacity: 0;
transform: $type;
}
.fade-enter-active,
.fade-leave-active {
@include transition(0.3s);
}
.fade-enter,
.fade-leave-to {
opacity: 0;
}
.fade-transform-enter-active,
.fade-transform-leave-active {
@include transition(0.5s);
}
.fade-transform-enter {
@include transform(translateX(-30px));
}
.fade-transform-leave-to {
@include transform(translateX(30px));
}
.slide-fade-enter-active,
.slide-fade-leave-active {
@include transition(0.5s);
}
.slide-fade-enter,
.slide-fade-leave-to {
@include transform(translateX(30px));
}
.slide-right-enter-active,
.slide-right-leave-active,
.slide-left-enter-active,
.slide-left-leave-active {
@include transition(0.5s);
}
.slide-right-enter,
.slide-left-leave-to {
@include transform(translateX(-100%));
}
.slide-left-enter,
.slide-right-leave-to {
@include transform(translateX(100%));
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化