Compass Ceaser CSS Easing Transitions 使用与技术文档
1. 安装指南
要使用Compass Ceaser CSS Easing Transitions扩展,您首先需要通过命令行安装gem:
gem install ceaser-easing
如果您想要将Ceaser Easing添加到现有项目中,需要编辑项目配置文件并添加以下代码:
require 'ceaser-easing'
然后在您的Sass/SCSS文件中导入Ceaser Easing:
@import "ceaser-easing";
创建一个使用Ceaser Easing的新项目,可以按照以下步骤操作:
compass create project_name -r ceaser-easing -u ceaser-easing
接着,在您的Sass/SCSS文件中导入Ceaser Easing:
@import "ceaser-easing";
2. 项目的使用说明
Ceaser Easing扩展为Sass提供了一个名为ceaser的函数,您可以将该函数用作过渡(transition)或动画(animation)的timing-function属性的值。您需要传递所需的缓动类型给该函数,它会为您应用正确的cubic-bezier过渡定时函数。
以下是ceaser函数的使用示例:
#transition {
transition-property: all;
transition-duration: 1.2s;
transition-timing-function: ceaser($ease-in);
}
#transition-shorthand {
transition: all 1.2s ceaser($ease-in);
}
#animation {
animation-name: animateMe;
animation-iteration-count: infinite;
animation-duration: 10s;
animation-timing-function: ceaser($easeInSine);
}
#animation-shorthand {
animation: animateMe 10s ceaser($easeInSine) infinite;
}
3. 项目API使用文档
Ceaser Easing扩展提供了以下缓动类型供您选择:
-
$linear -
$ease(默认值) -
$ease-in -
$ease-out -
$ease-in-out -
$easeInQuad -
$easeInCubic -
$easeInQuart -
$easeInQuint -
$easeInSine -
$easeInExpo -
$easeInCirc -
$easeInBack -
$easeOutQuad -
$easeOutCubic -
$easeOutQuart -
$easeOutQuint -
$easeOutSine -
$easeOutExpo -
$easeOutCirc -
$easeOutBack -
$easeInOutQuad -
$easeInOutCubic -
$easeInOutQuart -
$easeInOutQuint -
$easeInOutSine -
$easeInOutExpo -
$easeInOutCirc -
$easeInOutBack
此外,Ceaser Easing扩展还提供了一个名为ceaser的mixin,允许您传递所需的缓动类型给mixin,它会应用正确的cubic-bezier过渡定时函数。您还可以传递过渡属性、持续时间和延迟时间(默认分别为all、500ms和0)。
@mixin ceaser-transition($transition-property, $duration, $ease-type, $delay: 0) {
// mixin内容
}
@include ceaser-transition(all, 3s, $ease-in);
@include ceaser-transition(width, 500ms, $easeInOutExpo, 1s);
以下是如何为具有box ID的HTML元素创建上述过渡的示例:
#box {
width: 500px;
@include ceaser-transition(width, 500ms, $easeInOutExpo, 1s);
}
#box:hover {
width: 700px;
}
4. 项目安装方式
请遵循上述“安装指南”中的步骤进行安装。
Kimi-K2.5Kimi K2.5 是一款开源的原生多模态智能体模型,它在 Kimi-K2-Base 的基础上,通过对约 15 万亿混合视觉和文本 tokens 进行持续预训练构建而成。该模型将视觉与语言理解、高级智能体能力、即时模式与思考模式,以及对话式与智能体范式无缝融合。Python00- QQwen3-Coder-Next2026年2月4日,正式发布的Qwen3-Coder-Next,一款专为编码智能体和本地开发场景设计的开源语言模型。Python00
xw-cli实现国产算力大模型零门槛部署,一键跑通 Qwen、GLM-4.7、Minimax-2.1、DeepSeek-OCR 等模型Go06
PaddleOCR-VL-1.5PaddleOCR-VL-1.5 是 PaddleOCR-VL 的新一代进阶模型,在 OmniDocBench v1.5 上实现了 94.5% 的全新 state-of-the-art 准确率。 为了严格评估模型在真实物理畸变下的鲁棒性——包括扫描伪影、倾斜、扭曲、屏幕拍摄和光照变化——我们提出了 Real5-OmniDocBench 基准测试集。实验结果表明,该增强模型在新构建的基准测试集上达到了 SOTA 性能。此外,我们通过整合印章识别和文本检测识别(text spotting)任务扩展了模型的能力,同时保持 0.9B 的超紧凑 VLM 规模,具备高效率特性。Python00
KuiklyUI基于KMP技术的高性能、全平台开发框架,具备统一代码库、极致易用性和动态灵活性。 Provide a high-performance, full-platform development framework with unified codebase, ultimate ease of use, and dynamic flexibility. 注意:本仓库为Github仓库镜像,PR或Issue请移步至Github发起,感谢支持!Kotlin08
VLOOKVLOOK™ 是优雅好用的 Typora/Markdown 主题包和增强插件。 VLOOK™ is an elegant and practical THEME PACKAGE × ENHANCEMENT PLUGIN for Typora/Markdown.Less00