| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 | 2 |
| 3 <style> | 3 <style> |
| 4 .transparent { | 4 .transparent { |
| 5 opacity: 0.5; | 5 opacity: 0.5; |
| 6 } | 6 } |
| 7 | 7 |
| 8 .transform { | 8 .transform { |
| 9 transform: scale(0.8); | 9 transform: scale(0.8); |
| 10 } | 10 } |
| 11 | 11 |
| 12 .background-not-opaque { | 12 .background-not-opaque { |
| 13 background: rgba(255, 0, 0, 0.5); | 13 background: rgba(255, 0, 0, 0.5); |
| 14 } | 14 } |
| 15 | 15 |
| 16 .border-radius { |
| 17 border: 2px solid; |
| 18 border-radius: 20px; |
| 19 } |
| 20 |
| 21 .clip { |
| 22 position: absolute; |
| 23 clip: rect(0px,120px,120px,0px); |
| 24 } |
| 25 |
| 26 .clip-path{ |
| 27 clip-path: circle(115px at 20px 20px); |
| 28 } |
| 29 |
| 16 .content { | 30 .content { |
| 17 height: 500px; | 31 height: 500px; |
| 18 } | 32 } |
| 19 | 33 |
| 20 div { | 34 div { |
| 21 overflow: scroll; | 35 overflow: scroll; |
| 22 width: 200px; | 36 width: 200px; |
| 23 height: 300px; | 37 height: 300px; |
| 24 background: green; | 38 background: green; |
| 25 } | 39 } |
| 26 | 40 |
| 27 body { | 41 body { |
| 28 height: 2000px; | 42 height: 2000px; |
| 29 } | 43 } |
| 30 </style> | 44 </style> |
| 31 | 45 |
| 32 <div id="scroller1"> | 46 <div id="scroller1"> |
| 33 <div class="content"></div> | 47 <div class="content"></div> |
| 34 </div> | 48 </div> |
| 35 <div id="scroller2"> | 49 <div id="scroller2"> |
| 36 <div class="content"></div> | 50 <div class="content"></div> |
| 37 </div> | 51 </div> |
| OLD | NEW |