|
| 1 | +<!DOCTYPE html> |
| 2 | +<html lang="en"> |
| 3 | +<head> |
| 4 | + <meta charset="UTF-8"> |
| 5 | + <title>Document</title> |
| 6 | + <style> |
| 7 | +@import url('https://fonts.googleapis.com/css?family=Baloo|Crimson+Text'); |
| 8 | +h1:target{ |
| 9 | + animation: dropShadow 1.5s; |
| 10 | +} |
| 11 | +@keyframes dropShadow{ |
| 12 | + 50%{ |
| 13 | + color: #fe46ce; |
| 14 | + text-shadow: |
| 15 | + 1px 1px #02b1fe, |
| 16 | + 2px 2px #02b1fe, |
| 17 | + 3px 3px #02b1fe, |
| 18 | + 4px 4px #02b1fe, |
| 19 | + 5px 5px #02b1fe; |
| 20 | + } |
| 21 | +} |
| 22 | +h1{ |
| 23 | + background-image: linear-gradient(to right, #fe46ce, #02b1fe); |
| 24 | + background-clip: text; |
| 25 | + -webkit-background-clip: text; |
| 26 | + color: transparent; |
| 27 | + font: 52pt Baloo; |
| 28 | + margin: 0; line-height: 1.5em; |
| 29 | + |
| 30 | +} |
| 31 | +a{ |
| 32 | + color: #02b1fe; |
| 33 | + font: bolder 24pt Baloo; |
| 34 | + margin-right: 20px; |
| 35 | +} |
| 36 | +.filler{ |
| 37 | + height: 1000px; |
| 38 | + background-image: repeating-linear-gradient(to bottom, lightgrey, lightgrey 5px, #282527 5px, #282527 20px); |
| 39 | +} |
| 40 | +#links{ margin: 10px auto; } |
| 41 | +body{ |
| 42 | + width: 520px; |
| 43 | + margin: 60px auto auto auto; |
| 44 | + background-color: #282527; |
| 45 | + font: 13pt 'crimson text'; |
| 46 | +} |
| 47 | +code{ font-family: courier new; } |
| 48 | +strong{ |
| 49 | + background-image: linear-gradient(to right, #fe46ce, #02b1fe); |
| 50 | + padding: 3px 6px; border-radius: 2px; |
| 51 | + color: white; text-shadow: 1px 1px #282527; |
| 52 | +} |
| 53 | + </style> |
| 54 | +</head> |
| 55 | +<body> |
| 56 | +<strong>Click on the below links to see the CSS <code>:target</code> animation</strong> |
| 57 | +<div id=links> |
| 58 | + <a href=#title1>नारंगी</a> <a href=#title2>अमरूद</a> <a href=#title3>अनार</a> |
| 59 | +</div> |
| 60 | +<div class=filler></div> |
| 61 | +<h1 id=title1>नारंगी </h1> <a href="#links">go to links ⬏</a> |
| 62 | +<div class=filler></div> |
| 63 | +<h1 id=title2>अमरूद</h1> <a href="#links">go to links ⬏</a> |
| 64 | +<div class=filler></div> |
| 65 | +<h1 id=title3>अनार</h1> <a href="#links">go to links ⬏</a> |
| 66 | +<div class=filler></div> |
| 67 | +</body> |
| 68 | +</html> |
0 commit comments