Skip to content

Commit

Permalink
preserved spinner :)
Browse files Browse the repository at this point in the history
  • Loading branch information
dgreensp committed Aug 9, 2012
1 parent 42356f7 commit 07113b6
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/landmark-demo/client/landmark-demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Template.redrawButtons.events = {
}
};

Template.preserveDemo.preserve = [ '.keep' ];
Template.preserveDemo.preserve = [ '.spinner' ];

Template.preserveDemo.x =
Template.constantDemo.x =
Expand Down
15 changes: 15 additions & 0 deletions examples/landmark-demo/landmark-demo.css
Original file line number Diff line number Diff line change
@@ -1 +1,16 @@
/* CSS declarations go here */

@-webkit-keyframes spin {
from {-webkit-transform: rotate(0deg);}
to {-webkit-transform: rotate(360deg);}
}

.spinner {
width: 100px;
background: #ccc;
text-align: center;
-webkit-animation-name: spin;
-webkit-animation-duration:2s;
-webkit-animation-iteration-count:infinite;
-webkit-animation-timing-function:linear;
}
2 changes: 1 addition & 1 deletion examples/landmark-demo/landmark-demo.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ <h1>Landmark demo</h1>
<template name="preserveDemo">
<h2>Simple element preservation</h2>
X={{x}}<br>
<input type="text" class="keep"><br>
<div class="spinner">Wheeee</div><br>
X={{x}}
</template>

Expand Down

0 comments on commit 07113b6

Please sign in to comment.