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. 项目安装方式
请遵循上述“安装指南”中的步骤进行安装。
PaddleOCR-VL
PaddleOCR-VL 是一款顶尖且资源高效的文档解析专用模型。其核心组件为 PaddleOCR-VL-0.9B,这是一款精简却功能强大的视觉语言模型(VLM)。该模型融合了 NaViT 风格的动态分辨率视觉编码器与 ERNIE-4.5-0.3B 语言模型,可实现精准的元素识别。Python00- DDeepSeek-V3.2-ExpDeepSeek-V3.2-Exp是DeepSeek推出的实验性模型,基于V3.1-Terminus架构,创新引入DeepSeek Sparse Attention稀疏注意力机制,在保持模型输出质量的同时,大幅提升长文本场景下的训练与推理效率。该模型在MMLU-Pro、GPQA-Diamond等多领域公开基准测试中表现与V3.1-Terminus相当,支持HuggingFace、SGLang、vLLM等多种本地运行方式,开源内核设计便于研究,采用MIT许可证。【此简介由AI生成】Python00
openPangu-Ultra-MoE-718B-V1.1
昇腾原生的开源盘古 Ultra-MoE-718B-V1.1 语言模型Python00ops-transformer
本项目是CANN提供的transformer类大模型算子库,实现网络在NPU上加速计算。C++0134AI内容魔方
AI内容专区,汇集全球AI开源项目,集结模块、可组合的内容,致力于分享、交流。03Spark-Chemistry-X1-13B
科大讯飞星火化学-X1-13B (iFLYTEK Spark Chemistry-X1-13B) 是一款专为化学领域优化的大语言模型。它由星火-X1 (Spark-X1) 基础模型微调而来,在化学知识问答、分子性质预测、化学名称转换和科学推理方面展现出强大的能力,同时保持了强大的通用语言理解与生成能力。Python00GOT-OCR-2.0-hf
阶跃星辰StepFun推出的GOT-OCR-2.0-hf是一款强大的多语言OCR开源模型,支持从普通文档到复杂场景的文字识别。它能精准处理表格、图表、数学公式、几何图形甚至乐谱等特殊内容,输出结果可通过第三方工具渲染成多种格式。模型支持1024×1024高分辨率输入,具备多页批量处理、动态分块识别和交互式区域选择等创新功能,用户可通过坐标或颜色指定识别区域。基于Apache 2.0协议开源,提供Hugging Face演示和完整代码,适用于学术研究到工业应用的广泛场景,为OCR领域带来突破性解决方案。00- HHowToCook程序员在家做饭方法指南。Programmer's guide about how to cook at home (Chinese only).Dockerfile011
- PpathwayPathway is an open framework for high-throughput and low-latency real-time data processing.Python00
项目优选









