A reusable .sticker with CSS variables to adjust the gradient colors and the shine angle.
A Pen by Jens Grochtdreis on CodePen.
A reusable .sticker with CSS variables to adjust the gradient colors and the shine angle.
A Pen by Jens Grochtdreis on CodePen.
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>Basic Setup</title> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <style type="text/css"> | |
| body { | |
| margin: 1em auto; |
| <h1>Responsive Images </h1> | |
| <h2>Banner image</h2> | |
| <div class="wrapper"> | |
| <div class="image banner-image"> | |
| <picture> | |
| <source media="(min-width: 1024px)" | |
| srcset="https://dummyimage.com/1440x810/a20000/fff&text=1440x810source 1440w, | |
| https://dummyimage.com/1080x608/fd8700/000&text=1080x608source 1080w" | |
| sizes="(min-width: 1440px) 1080px, | |
| (min-width: 1024px) 1440px" |
| <h1>Responsive Images </h1> | |
| <h2>Banner image</h2> | |
| <div class="wrapper"> | |
| <div class="image banner-image"> | |
| <picture> | |
| <source media="(min-width: 1200px)" | |
| srcset="https://dummyimage.com/768x432/444/fff 768w,https://dummyimage.com/1440x810/a20000/fff 1440w,https://dummyimage.com/1080x608/fd8700/000 1920w" | |
| sizes="(min-width: 1200px) 1000px" width="768" height="432"> | |
| <img src="https://dummyimage.com/320x180/ddd&text=Fallback" | |
| srcset="https://dummyimage.com/320x180/ddd 320w,https://dummyimage.com/480x270/ccc 480w,https://dummyimage.com/768x432/444/fff 768w" |
| /* Basic stylesheet for MathML elements */ | |
| math { | |
| font-family: 'Times New Roman', Times, serif; | |
| font-size: 1em; | |
| line-height: 1.2; | |
| } | |
| mrow, | |
| mfrac, | |
| msqrt, |
| /* ******************************************************************************************* | |
| * TAILWIND.CSS | |
| * DOCUMENTATION: https://tailwindcss.com/ | |
| * ******************************************************************************************* */ | |
| /* | |
| * Available breakpoints | |
| * -------------------- | |
| * sm: min-width: 640px; | |
| * md: min-width: 768px; |