ouroboros
所属分类:collect
开发工具:Ruby
文件大小:0KB
下载次数:0
上传日期:2013-06-15 06:38:16
上 传 者:
sh-1993
说明: 用于现代浏览器的CSS微调器,使用Sass.构建。,
(CSS spinner for modern browsers, built with Sass.,)
文件列表:
config.rb (47, 2013-06-14)
i/ (0, 2013-06-14)
i/throbber.gif (2704, 2013-06-14)
index.html (1513, 2013-06-14)
sass/ (0, 2013-06-14)
sass/_ui-spinner.scss (4497, 2013-06-14)
sass/example.scss (330, 2013-06-14)
sass/spinner-old-ie.scss (239, 2013-06-14)
stylesheets/ (0, 2013-06-14)
stylesheets/example.css (4951, 2013-06-14)
stylesheets/spinner-old-ie.css (354, 2013-06-14)
# Ouroboros Sass/CSS Spinner
See blog entry at [http://atomeye.com/projects/sass-css-spinner.html](http://atomeye.com/projects/sass-css-spinner.html) for more details.
The Ouroboros is an ancient symbol depicting a serpent or dragon eating its own tail. Inspired by application progress spinners this provides an imageless 'throbber' for modern browsers that eats itself (in a way).
The name comes after the greek words ουρ (tail) + βρο (eater / devourer).
## Browser Support
- Chrome 24+
- Firefox 18+
- IE 10+
- Opera 12+
- Safari 5+
- iOS 5 & 6 (scrolling pauses animation)
A standard 32x32 animated gif throbber is provided as a fallback for older versions of IE. It is centered where the spinner animation would have been.
## Usage
1. For Sass users add the `_ui-spinner.scss` into your project.
2. If you want IE < 10 support also add the `spinner-old-ie.scss` and the throbber.gif. You can include it with an IE conditional tag. See the example in `index.html`.
```html
```
3. In our project Sass use the `ui-spinner` mixin with defaults or pass in any arguments. Also see the mixin examples in `example.scss`.
```scss
@include ui-spinner; // Will use defaults.
@include ui-spinner(#fff, 60px, gray, purple, .7, 4s); // Will use these variables.
```
4. Use with the following HTML. Also see the HTML examples in `index.html`.
```html
```
### The 6 Optional Parameters
Parameter |
Description |
Defaults |
Hole color* |
Color of the hole to fake a ring |
transparent |
Size |
Size of the spinner |
46px |
Background color light |
First color, specify a lighter of the two colors |
#ddd |
Background color dark |
Second color, specify the darker of the two colors |
#3c76ca |
Opacity |
The opacity of the spinner |
.8 |
Duration |
Speed of the spinner |
3s |
* The hole color is just to fake a ring spinner. You have to match the color you pass into the mixin to the background-color that the spinner will appear against.
## Don't Use Sass?
You can use the CSS that the Sass generates in `stylesheets/main.scss` and make edits to the parameters described above.
近期下载者:
相关文件:
收藏者: