Skip to content

Commit 99ced15

Browse files
Merge pull request #19 from raphaelfabeni/development
Development
2 parents 4dbf72b + ebac3b5 commit 99ced15

18 files changed

+44
-42
lines changed

README.md

Lines changed: 20 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -85,10 +85,10 @@ It's also possible to change the text, just passing a value to the attribute `da
8585

8686
![loader-data-text-custom](https://cloud.githubusercontent.com/assets/1345662/19313797/21e3fb22-906e-11e6-8f0a-11cc9c0fb8d2.gif)
8787

88-
**blink**: passing the `blink` attribute, you can add a simple _fade_ animation to the text loader
88+
**blink**: passing the `data-blink` attribute, you can add a simple _fade_ animation to the text loader
8989

9090
```html
91-
<div class="loader loader-default is-active" data-text blink></div>
91+
<div class="loader loader-default is-active" data-text data-blink></div>
9292
```
9393

9494
![loader-blink](https://cloud.githubusercontent.com/assets/1345662/19313798/25fa2830-906e-11e6-88d2-2f165a68cb80.gif)
@@ -101,7 +101,7 @@ It's also possible to change the text, just passing a value to the attribute `da
101101

102102
[See it](http://raphaelfabeni.com.br/css-loader/#/loader-default-half) :metal:
103103

104-
The variations _half_, _data-text_ and _blink_ work together. 😄
104+
The variations _data-half_, _data-text_ and _data-blink_ work together. 😄
105105

106106
### Double
107107

@@ -132,17 +132,17 @@ Like the `loader` example, it's also possible to pass the `data-text` and `blink
132132
<!-- -->
133133
<div class="loader loader-bar is-active" data-text="Custom text"></div>
134134
<!-- -->
135-
<div class="loader loader-bar is-active" data-text blink></div>
135+
<div class="loader loader-bar is-active" data-text data-blink></div>
136136
```
137137

138138
[See it](http://raphaelfabeni.com.br/css-loader/#/loader-bar-text) :metal:
139139

140-
**rounded**: passing the `rounded` attribute, it's possible to add a simple `border-radius` to the loader.
140+
**rounded**: passing the `data-rounded` attribute, it's possible to add a simple `border-radius` to the loader.
141141

142142
![loader-bar-rounded](https://cloud.githubusercontent.com/assets/1345662/19315031/ab850700-9072-11e6-9cd4-9fe899f05a10.gif)
143143

144144
```html
145-
<div class="loader loader-bar is-active" data-text rounded></div>
145+
<div class="loader loader-bar is-active" data-text data-rounded></div>
146146
```
147147

148148
[See it](http://raphaelfabeni.com.br/css-loader/#/loader-bar-rounded) :metal:
@@ -166,7 +166,7 @@ Like the `loader` example, it's also possible to pass the `data-text` and `blink
166166
<!-- -->
167167
<div class="loader loader-border is-active" data-text="Custom text"></div>
168168
<!-- -->
169-
<div class="loader loader-border is-active" data-text blink></div>
169+
<div class="loader loader-border is-active" data-text data-blink></div>
170170
```
171171

172172
[See it](http://raphaelfabeni.com.br/css-loader/#/loader-border-text) :metal:
@@ -187,6 +187,10 @@ Like the `loader` example, it's also possible to pass the `data-text` and `blink
187187

188188
![loader-ball-shadow](https://cloud.githubusercontent.com/assets/1345662/19502619/06f1c906-958d-11e6-87c9-d64b13688485.gif)
189189

190+
```html
191+
<div class="loader loader-ball is-active" data-shadow></div>
192+
```
193+
190194
[See it](http://raphaelfabeni.com.br/css-loader/#/loader-ball-shadow) :metal:
191195

192196
### Smartphone
@@ -240,7 +244,7 @@ Like the `loader` example, it's also possible to pass the `data-text` and `blink
240244
**brazilian**: a simple version using the traditional brazilian green and yellow. :brazil:
241245

242246
```html
243-
<div class="loader loader-curtain is-active" brazilian></div>
247+
<div class="loader loader-curtain is-active" data-brazilian></div>
244248
```
245249

246250
![loader-curtain-br](https://cloud.githubusercontent.com/assets/1345662/20083191/fd5596c4-a541-11e6-8f26-1a9325e0401e.gif)
@@ -250,23 +254,23 @@ Like the `loader` example, it's also possible to pass the `data-text` and `blink
250254
**colorful**: a colorful version.
251255

252256
```html
253-
<div class="loader loader-curtain is-active" colorful></div>
257+
<div class="loader loader-curtain is-active" data-colorful></div>
254258
```
255259

256260
![loader-curtain-color](https://cloud.githubusercontent.com/assets/1345662/20083192/fd59f854-a541-11e6-97eb-6bd380ff5356.gif)
257261

258262
[See it](http://raphaelfabeni.com.br/css-loader/#/loader-curtain-colorful) :metal:
259263

260-
**w/ custom text**: it's also possible customize the text loader. It's just pass the data attribute `curtain-text` with the value desired.
264+
**w/ custom text**: it's also possible customize the text loader. It's just pass the data attribute `data-curtain-text` with the value desired.
261265

262266
```html
263-
<div class="loader loader-curtain is-active" colorful curtain-text="Hello"></div>
267+
<div class="loader loader-curtain is-active" colorful data-curtain-text="Hello"></div>
264268
```
265269

266270
### Music
267271

268272
```html
269-
<div class="loader loader-music is-active" hey-oh></div>
273+
<div class="loader loader-music is-active" data-hey-oh></div>
270274
```
271275

272276
This loader differs from the other because we have to pass an attribute to it, according to song's chorus that we want to load.
@@ -276,7 +280,7 @@ This loader differs from the other because we have to pass an attribute to it, a
276280
**hey-oh**: The classic [Hey! Oh! Let's Go!](https://www.youtube.com/watch?v=xuOnePNlOgY) from Ramones.
277281

278282
```html
279-
<div class="loader loader-music is-active" hey-oh></div>
283+
<div class="loader loader-music is-active" data-hey-oh></div>
280284
```
281285

282286
![loader-music-hey-oh](https://cloud.githubusercontent.com/assets/1345662/20288053/c3179248-aab7-11e6-8551-9819f523fbee.gif)
@@ -286,7 +290,7 @@ This loader differs from the other because we have to pass an attribute to it, a
286290
**no-cry**: [No woman no cry](https://www.youtube.com/watch?v=x59kS2AOrGM) from Bob Marley.
287291

288292
```html
289-
<div class="loader loader-music is-active" no-cry></div>
293+
<div class="loader loader-music is-active" data-no-cry></div>
290294
```
291295

292296
![loader-music-no-woman](https://cloud.githubusercontent.com/assets/1345662/20288054/c3363950-aab7-11e6-882a-8fdecdca06d3.gif)
@@ -296,7 +300,7 @@ This loader differs from the other because we have to pass an attribute to it, a
296300
**we-are**: [We are the world](https://www.youtube.com/watch?v=x59kS2AOrGM) from Michael Jackson.
297301

298302
```html
299-
<div class="loader loader-music is-active" we-are></div>
303+
<div class="loader loader-music is-active" data-we-are></div>
300304
```
301305

302306
![loader-music-we-are](https://cloud.githubusercontent.com/assets/1345662/20288055/c33fd910-aab7-11e6-8a0d-6cd303759c92.gif)
@@ -306,7 +310,7 @@ This loader differs from the other because we have to pass an attribute to it, a
306310
**rock-you**: [We will rock you](https://www.youtube.com/watch?v=-tJYN-eG1zk) from Queen.
307311

308312
```html
309-
<div class="loader loader-music is-active" rock-you></div>
313+
<div class="loader loader-music is-active" data-rock-you></div>
310314
```
311315

312316
![loader-music-we-will](https://cloud.githubusercontent.com/assets/1345662/20288056/c344bf66-aab7-11e6-9adb-7fbc21bf1c09.gif)

dist/css-loader.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/loader-ball.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/loader-border.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/loader-curtain.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/loader-default.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)