SpinThatShit

A set of SCSS mixins for single element loaders and spinners

  • 所有者: MatejKustec/SpinThatShit
  • 平台:
  • 許可證: MIT License
  • 分類:
  • 主題:
  • 喜歡:
    0
      比較:

Github星跟蹤圖

SpinThatShit

A set of SCSS mixins for single element loaders and spinners

View examples

Getting started

npm install spinthatshit
bower install SpinThatShit

OR

  • Clone or download repo
  • Include src folder to your project

Usage

Create a div with your custom loader class name:

<div class="your-loader"></div>

In your custom class name include a mixin of a loader. All loaders are ordered by number, so you will have to take a look in examples folder for your loader number.

.your-loader {
    @include loader01;
}

In _variables.scss there are default settings for loaders

$loader-color: #0052ec;
$loader-size: 56px;
$loader-height: 20px;
$loader-border-size: 8px;
$loader-gap: 12px;
$loader-animation-duration: 1s;

But you can also change these default settings, while your're including loader

@include loader09($size: 10px, $height: 48px, $gap: 8px, $duration: 1s, $align: middle);

All loaders can be also aligned to center, while including loader with parameter $align,
$align: center is just for x axis, $align: middle is for both axis.

PARAMETERS

Parameter, Type, Default value
------------, -------------, -------------
$size, Number, $loader-size
$height, Number, $loader-height
$border-size, Number, $loader-border-size
$color, Color, $loader-color
$duration, Time, $loader-animation-duration
$gap, Number, $loader-gap
$align, Keyword, null

NOTE: Some loaders may not need $height and $gap parameters.

Performance issues

Some loaders which are using box-shadow for animation may be causing high cpu usage and lag, I'll need to look into more details and fix it, if it's possible.

Contributing

If you have some new idea for loader/spinner or you want to fix loader just let me know.

主要指標

概覽
名稱與所有者MatejKustec/SpinThatShit
主編程語言SCSS
編程語言JavaScript (語言數: 2)
平台
許可證MIT License
所有者活动
創建於2016-08-30 19:23:50
推送於2022-07-28 09:59:39
最后一次提交2022-07-28 11:59:39
發布數5
最新版本名稱1.0.4 (發布於 2017-09-10 20:25:43)
第一版名稱v1.0.1 (發布於 2016-09-28 15:11:45)
用户参与
星數1.5k
關注者數34
派生數129
提交數30
已啟用問題?
問題數4
打開的問題數2
拉請求數5
打開的拉請求數1
關閉的拉請求數0
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?