OLD | NEW |
| (Empty) |
1 <!-- | |
2 Copyright 2012 Google Inc. All Rights Reserved. | |
3 | |
4 Licensed under the Apache License, Version 2.0 (the "License"); | |
5 you may not use this file except in compliance with the License. | |
6 You may obtain a copy of the License at | |
7 | |
8 http://www.apache.org/licenses/LICENSE-2.0 | |
9 | |
10 Unless required by applicable law or agreed to in writing, software | |
11 distributed under the License is distributed on an "AS IS" BASIS, | |
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
13 See the License for the specific language governing permissions and | |
14 limitations under the License. | |
15 --> | |
16 | |
17 <!DOCTYPE html><meta charset="UTF-8"> | |
18 <head> | |
19 <link | |
20 href='http://fonts.googleapis.com/css?family=Raleway:400,100,200,300,500,600
,700,800,900' | |
21 rel='stylesheet' type='text/css'> | |
22 <style> | |
23 div.test { | |
24 font-family: Raleway; | |
25 font-size: 75px; | |
26 } | |
27 div.target { | |
28 position: absolute; | |
29 color: red; | |
30 z-index: -1; | |
31 } | |
32 </style> | |
33 </head> | |
34 <body> | |
35 <div class='test target' style='font-weight: 900;'>Testing font-weight!</div> | |
36 <div class='test' style='font-weight: 100' id='test'>Testing font-weight!</div> | |
37 <script src="../bootstrap.js"></script> | |
38 <script> | |
39 "use strict"; | |
40 document.timeline.play(new Animation(document.querySelector('#test'), | |
41 [{fontWeight: '100'}, {fontWeight: '900'}], | |
42 {duration: 1 * 1000, delay: 1 * 1000, fill: 'forwards'})); | |
43 </script> | |
OLD | NEW |