mocka

Simple, elegant content placeholder

  • 所有者: Chalarangelo/mocka
  • 平台:
  • 许可证: MIT License
  • 分类:
  • 主题:
  • 喜欢:
    0
      比较:

Github星跟踪图

mocka

Simple, elegant content placeholder

Mocka

npm install mocka-placeholder

Introduction

The mocka placeholder is a very simple content placeholder that you can use for your website or web application, while loading your page's content. It weighs very little (about 500 bytes minified and gzipped), is fully customizable and you can easily include it in your project's CSS file, by using the Sass mixin provided. Alternatively, you can copy its code and inline it in your HTML for even faster loading.

Usage

After loading the css, you can create a placeholder using the code provided below:

<div class="mocka-container">
  <span class="mocka-media"></span>
  <span class="mocka-heading"></span>
  <span class="mocka-text"></span>
</div>

Customization

Download the npm package, add the mixin to your project, then @import the file and @include the mixin, passing a single map as an argument. The map contains all the information needed to generate the classes from the mixin. You can find the map with the default values in the mocka.scss file.

License

Mocka is an open-source Sass/CSS component and is licensed under the MIT License.

主要指标

概览
名称与所有者Chalarangelo/mocka
主编程语言CSS
编程语言CSS (语言数: 1)
平台
许可证MIT License
所有者活动
创建于2017-05-24 10:00:24
推送于2017-05-26 11:25:31
最后一次提交2017-05-26 14:24:00
发布数1
最新版本名称v1.0.2 (发布于 )
第一版名称v1.0.2 (发布于 )
用户参与
星数1.2k
关注者数15
派生数38
提交数12
已启用问题?
问题数2
打开的问题数1
拉请求数0
打开的拉请求数0
关闭的拉请求数0
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?