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?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?