mirror of
https://github.com/ionic-team/ionicons.git
synced 2026-11-30 16:48:16 +01:00
starting animations
This commit is contained in:
@@ -0,0 +1,97 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Ionicons Animations</title>
|
||||
<style>
|
||||
* {
|
||||
-moz-box-sizing: border-box;
|
||||
-webkit-box-sizing: border-box;
|
||||
box-sizing: border-box;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
body {
|
||||
background: #fff;
|
||||
color: #444;
|
||||
font: 16px/1.5 "Helvetica Neue", Helvetica, Arial, sans-serif;
|
||||
}
|
||||
|
||||
a, a:visited {
|
||||
color: #888;
|
||||
text-decoration: underline;
|
||||
}
|
||||
a:hover, a:focus { color: #000; }
|
||||
p { margin-bottom: 20px; }
|
||||
|
||||
header {
|
||||
border-bottom: 2px solid #ddd;
|
||||
margin-bottom: 20px;
|
||||
overflow: hidden;
|
||||
padding: 20px 0;
|
||||
}
|
||||
|
||||
header h1 {
|
||||
color: #888;
|
||||
float: left;
|
||||
font-size: 36px;
|
||||
font-weight: 300;
|
||||
}
|
||||
|
||||
header a {
|
||||
float: right;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.container {
|
||||
margin: 0 auto;
|
||||
max-width: 1200px;
|
||||
min-width: 960px;
|
||||
padding: 0 20px;
|
||||
width: 95%;
|
||||
}
|
||||
|
||||
.icon {
|
||||
font-size: 32px;
|
||||
}
|
||||
</style>
|
||||
<link href="css/ionicons.css" rel="stylesheet" type="text/css" media="screen" />
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="container">
|
||||
<header>
|
||||
<h1>Ionicons Animations:</h1>
|
||||
<p><a href="http://ionicons.com/">Ionicons Homepage</a></p>
|
||||
</header>
|
||||
<div class="content">
|
||||
|
||||
<h3>.ion-refreshing</h3>
|
||||
<p>
|
||||
<i class="icon ion-refreshing"></i>
|
||||
</p>
|
||||
|
||||
<h3>.ion-loading-a</h3>
|
||||
<p>
|
||||
<i class="icon ion-loading-a"></i>
|
||||
</p>
|
||||
|
||||
<h3>.ion-loading-b</h3>
|
||||
<p>
|
||||
<i class="icon ion-loading-b"></i>
|
||||
</p>
|
||||
|
||||
<h3>.ion-loading-c</h3>
|
||||
<p>
|
||||
<i class="icon ion-loading-c"></i>
|
||||
</p>
|
||||
|
||||
<h3>.ion-loading-d</h3>
|
||||
<p>
|
||||
<i class="icon ion-loading-d"></i>
|
||||
</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
+21
-12
@@ -1,4 +1,4 @@
|
||||
/*!
|
||||
/*
|
||||
Ionicons, v1.3.0
|
||||
Created by Ben Sperry for the Ionic Framework, http://ionicons.com/
|
||||
https://twitter.com/helloimben https://twitter.com/ionicframework
|
||||
@@ -11,7 +11,11 @@
|
||||
font-weight: normal;
|
||||
font-style: normal; }
|
||||
|
||||
.ion, .ionicons,
|
||||
.ion, .ion-loading-a,
|
||||
.ion-loading-b,
|
||||
.ion-loading-c,
|
||||
.ion-loading-d,
|
||||
.ion-refreshing, .ionicons,
|
||||
.ion-alert,
|
||||
.ion-alert-circled,
|
||||
.ion-archive,
|
||||
@@ -455,6 +459,7 @@
|
||||
.ion-wineglass,
|
||||
.ion-woman,
|
||||
.ion-wrench {
|
||||
display: inline-block;
|
||||
font-family: "Ionicons";
|
||||
speak: none;
|
||||
font-style: normal;
|
||||
@@ -465,11 +470,15 @@
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale; }
|
||||
|
||||
.ion-spin {
|
||||
-webkit-animation: spin 2s infinite linear;
|
||||
-moz-animation: spin 2s infinite linear;
|
||||
-o-animation: spin 2s infinite linear;
|
||||
animation: spin 2s infinite linear; }
|
||||
.ion-spin, .ion-loading-a,
|
||||
.ion-loading-b,
|
||||
.ion-loading-c,
|
||||
.ion-loading-d,
|
||||
.ion-refreshing {
|
||||
-webkit-animation: spin 0.8s infinite linear;
|
||||
-moz-animation: spin 0.8s infinite linear;
|
||||
-o-animation: spin 0.8s infinite linear;
|
||||
animation: spin 0.8s infinite linear; }
|
||||
|
||||
@-moz-keyframes spin {
|
||||
0% {
|
||||
@@ -1451,16 +1460,16 @@
|
||||
.ion-link:before {
|
||||
content: "\f1fe"; }
|
||||
|
||||
.ion-load-a:before {
|
||||
.ion-load-a:before, .ion-loading-a:before {
|
||||
content: "\f29a"; }
|
||||
|
||||
.ion-load-b:before {
|
||||
.ion-load-b:before, .ion-loading-b:before {
|
||||
content: "\f29b"; }
|
||||
|
||||
.ion-load-c:before {
|
||||
.ion-load-c:before, .ion-loading-c:before {
|
||||
content: "\f29c"; }
|
||||
|
||||
.ion-load-d:before {
|
||||
.ion-load-d:before, .ion-loading-d:before {
|
||||
content: "\f29d"; }
|
||||
|
||||
.ion-location:before {
|
||||
@@ -1595,7 +1604,7 @@
|
||||
.ion-record:before {
|
||||
content: "\f21b"; }
|
||||
|
||||
.ion-refresh:before {
|
||||
.ion-refresh:before, .ion-refreshing:before {
|
||||
content: "\f21c"; }
|
||||
|
||||
.ion-reply:before {
|
||||
|
||||
Vendored
+2
-2
File diff suppressed because one or more lines are too long
@@ -2,10 +2,10 @@
|
||||
// --------------------------
|
||||
|
||||
.#{$ionicons-prefix}spin {
|
||||
-webkit-animation: spin 2s infinite linear;
|
||||
-moz-animation: spin 2s infinite linear;
|
||||
-o-animation: spin 2s infinite linear;
|
||||
animation: spin 2s infinite linear;
|
||||
-webkit-animation: spin .8s infinite linear;
|
||||
-moz-animation: spin .8s infinite linear;
|
||||
-o-animation: spin .8s infinite linear;
|
||||
animation: spin .8s infinite linear;
|
||||
}
|
||||
|
||||
@-moz-keyframes spin {
|
||||
@@ -27,4 +27,34 @@
|
||||
@keyframes spin {
|
||||
0% { transform: rotate(0deg); }
|
||||
100% { transform: rotate(359deg); }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
.#{$ionicons-prefix}loading-a,
|
||||
.#{$ionicons-prefix}loading-b,
|
||||
.#{$ionicons-prefix}loading-c,
|
||||
.#{$ionicons-prefix}loading-d,
|
||||
.#{$ionicons-prefix}refreshing {
|
||||
@extend .ion;
|
||||
@extend .#{$ionicons-prefix}spin;
|
||||
}
|
||||
|
||||
.#{$ionicons-prefix}loading-a:before {
|
||||
@extend .#{$ionicons-prefix}load-a:before;
|
||||
}
|
||||
|
||||
.#{$ionicons-prefix}loading-b:before {
|
||||
@extend .#{$ionicons-prefix}load-b:before;
|
||||
}
|
||||
|
||||
.#{$ionicons-prefix}loading-c:before {
|
||||
@extend .#{$ionicons-prefix}load-c:before;
|
||||
}
|
||||
|
||||
.#{$ionicons-prefix}loading-d:before {
|
||||
@extend .#{$ionicons-prefix}load-d:before;
|
||||
}
|
||||
|
||||
.#{$ionicons-prefix}refreshing:before {
|
||||
@extend .#{$ionicons-prefix}refresh:before;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user