25 Star 894 Fork 41

馒头拿来摸摸 / OCDeer.css

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

OCDeer - 让作品遇见全世界


关于OCDeer

OCDeer提供全应用场景的动效css样式,帮助开发者跳过复杂的调试过程,直接在项目引入样式即可,无须浪费太多的精力在界面设计,以腾出更多时间去专注于页面逻辑和服务功能。

功能分类

按库功能分为两类,第一类为定式(OCDeer),所有样式和动效都设计搭配好并写死固定,适合引入即用。第二类为动式(OneClass),由zwyboom提供,利用伪类:before和:after在保证原有的样式不改变的情况下增加css动态效果,简而言之我们只规定了动效而未规定样式,组件样式仍由开发者决定,相比第一种更加灵活。

使用说明

1.OCDeer

下载对应css库并引入,对照帮助文档,在HTML中直接使用class引用对应样式。

建议对照wiki使用

2.OneClass

下载oneClass.css并引入,在div中引用对应动效的class。

软件架构

1. OCDeer

1. 按结构划分为样式整合包和css库,按自身需求自行取用
2. button.css 按钮类css库
3. Text.css 文本类css库
4. Input.css 输入搜索框类css库
5. Card.css 卡片类css库
6. Films.css 动画类css库
7. Forms.css 表单类css库
8. Navs.css 导航栏类css库
9. Pagination.css 分页符框类css库
10. Modal.css 输入搜索框类css库

2. OneClass

暂未细分

帮助文档

1.OCDeer

导入css库后,直接在HTML中引用对应的类选择器。

<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <title></title>
        <link rel="stylesheet" type="text/css" href="css/button.css" />
    </head>
    <body>
        <button type="button" class="btn-1">BUTTON</button>	
    </body>
</html>

上例为最简单的一种,还有多选择器的样式,例如btn-3 波动按钮
该样式下有两个分类,up,left,区别于波动起点位置及颜色不同。
首先引用该选择器class="btn-3"
然后引用选择器下的具体样式分类class="up"或class="left"

<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <title></title>
        <link rel="stylesheet" type="text/css" href="css/button.css" />
    </head>
    <body>
        <div class="btn-3">
            <button type="button" class="up">BUTTON</button>
        </div>
    </body>
</html>

建议使用者对照详细文档使用该库,地址:
OCDeer详细文档地址:OCDeer.md
WiKi地址:wiki

2.OneClass

OneClass全部为单一类选择器,直接在HTML中引用clss即可。

<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <title></title>
        <link rel="stylesheet" type="text/css" href="css/oneClass.css" />
    </head>
    <body>
         <div class="bubble zwyFly">气泡</div>
    </body>
    <style>
        .bubble{
            width: 60px;
            height: 60px;
            border-radius: 50%;
            background-color: #007AFF;
            color: white;
            text-align: center;
            line-height: 60px;
        }
    </style>
</html>

OneClass详细文档地址:OneClass.md

样式展示

1.OCDeer

样式相册地址:https://show.ocdeer.cn/
GitHub地址:https://github.com/1691469549/OCDeer.css
站内不方便放置太多图片,以表格形式跳转到外部实例。
1. Button

序号 类选择器名 外部实例
1 btn-1 流光溢彩
2 btn-2 flash
3 btn-3 波动效果
4 btn-4 流光边框
5 btn-5 折叠双层按钮
6 btn-6 流光边框2
7 btn-7 边框变色
8 btn-8 边框绘制
9 btn-9 边框绘制2
10 btn-10 波动按钮
11 btn-11 故障风格
12 btn-12 绘制边框-流光

2.Text

序号 类选择器名 外部实例
1 text-1 收缩扩展
2 text-2 聚光灯
3 text-3 文字分裂
4 text-4 炫光文字
5 text-5 水波

3.Input

序号 类选择器名 外部实例
1 input-1 输入框-绘制
2 input-2 搜索框-悬停扩展
3 input-3 搜索框-点击扩展

2.OneClass

OneClass独立仓库地址:https://gitee.com/zwyboom/zwyCss
OneClass在线预览地址:https://zwyboom.gitee.io/zwycss
GitHub地址:https://github.com/seventhcode/oneClass

MIT License Copyright (c) 2021 馒头拿来摸摸 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

css动态样式库 展开 收起
CSS 等 2 种语言
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
CSS
1
https://gitee.com/mtnlmm/ocdeer.git
git@gitee.com:mtnlmm/ocdeer.git
mtnlmm
ocdeer
OCDeer.css
master

搜索帮助