• Stars
    star
    1,191
  • Rank 37,644 (Top 0.8 %)
  • Language
    CSS
  • License
    MIT License
  • Created almost 7 years ago
  • Updated almost 7 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Simple, elegant content placeholder

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.

More Repositories

1

30-seconds-of-code

Short code snippets for all your development needs
JavaScript
118,581
star
2

30-seconds-of-css

Short CSS code snippets for all your development needs
CSS
16,153
star
3

30-seconds-of-interviews

A curated collection of common interview questions to help you prepare for your next interview.
JavaScript
11,879
star
4

30-seconds-of-python

Short Python code snippets for all your development needs
Python
8,834
star
5

30-seconds-of-react

Short React code snippets for all your development needs
JavaScript
5,049
star
6

mini.css

A minimal, responsive, style-agnostic CSS framework!
CSS
2,956
star
7

30-seconds-of-php

Short PHP code snippets for all your development needs
PHP
2,511
star
8

30-seconds-web

Website infrastructure for 30-seconds projects.
JavaScript
1,243
star
9

30-seconds-blog

Code articles for all your development needs
565
star
10

30-seconds-of-git

Short git snippets for all your development needs
293
star
11

30-seconds-of-csharp

Short C# code snippets for all your development needs
C#
180
star
12

30-seconds-of-golang

Short Golang code snippets for all your development needs
Go
148
star
13

30-seconds-of-dart

Short Dart code snippets for all your development needs
Dart
109
star
14

node-static-page-generator

A basic static page generator for Node.js.
JavaScript
108
star
15

markdown-builder

1kb Markdown builder for Node.js
JavaScript
89
star
16

codeigniter-rap

A simple RESTful API implementation using PHP and CodeIgniter
PHP
63
star
17

mock-pwa

A mock progressive web app, using React and mini.css.
JavaScript
42
star
18

htmltemplategenerator

An HTML5 template page generator.
JavaScript
41
star
19

twitter-bot

The Twitter bot for the 30-seconds organization.
JavaScript
38
star
20

parse-md-js

A regular expression Markdown parser, written in functional Javascript
JavaScript
38
star
21

integration-tools

Integration tooling for 30-seconds projects.
JavaScript
37
star
22

create-js-project

Set up a JavaScript project by running one command.
JavaScript
37
star
23

furl

Functional react.js components.
JavaScript
34
star
24

30-seconds-content

Content configuration data for 30-seconds projects.
32
star
25

react-mini.css

Fast, lightweight mini.css components built with React/Preact!
JavaScript
29
star
26

portfolio

My personal portfolio and resume page.
JavaScript
27
star
27

unscrape

A simple image scraper.
Python
25
star
28

brand-and-design

Brand book and design guidelines for the 30 seconds of code organization.
24
star
29

bootstrap-extend

A set of useful extensions for Bootstrap.
CSS
22
star
30

starclock-js

An astronomical-like clock built entirely using javascript, jquery and css.
JavaScript
16
star
31

pwapp-demo

A very simple progressive web app demo that will help you get started.
JavaScript
15
star
32

javascript-lessons

Learning Javascript the easy way.
HTML
12
star
33

cows-js

Chat over WebSockets using JavaScript.
JavaScript
11
star
34

autumn-pwa

A mock progressive web app, using React, Redux and mini.css.
JavaScript
8
star
35

reactor

React app quick setup script
Batchfile
6
star
36

jsiqle

JavaScript In-memory Query Language with Events.
JavaScript
6
star
37

qrcodegolf

QR code encoder / decoder for short messages.
JavaScript
5
star
38

Chalarangelo.github.io

My personal page repository
HTML
5
star
39

elegantime

Elegant React-based clock
JavaScript
5
star
40

weatherly

Pure CSS Weather Animations
CSS
4
star
41

thumb.js

Modern, performant touch screen gestures
JavaScript
4
star
42

combine-class-names

JS Utility for cleaner className template literals in React
JavaScript
3
star
43

multisort

Stupidly inefficient hybrid sorting algorithm
Python
3
star
44

blog

JavaScript
3
star
45

Chalarangelo

Special profile repository
3
star
46

timy

A simple time ago React component.
JavaScript
3
star
47

game-off-2017

My submission for Github Game Off 2017
JavaScript
2
star
48

fixture-factory

Modest fixture creation utility for JS tests
TypeScript
2
star
49

gatsby-starter-netlify-cms

1
star
50

thesis

This is my Bachelor's degree thesis. - Finished December, 2015. - The paper is in Greek.
1
star
51

verticaltabtree

An add-on for Mozilla Firefox that displays tabs in a vertical tree with grouping options.
JavaScript
1
star
52

simple-color-picker

A tiny, hackable color picker component.
JavaScript
1
star