2

Coding Shades 😎 SVG

 2 years ago
source link: https://codepen.io/leimapapa/pen/rNpJpOM
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Coding Shades 😎 SVG

0 unsaved changes
xxxxxxxxxx
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewbox="0 0 40 16">
  <defs>
    <clipPath id="glasses-cut-out">
      <path d="M 4 8 Q 3 3 6 2 Q 11 1 15.5 2 Q 20 4 15 9 Q 6 18 4 8 
               M 36 8 Q 37 3 34 2 Q 29 1 24.5 2 Q 20 4 25 9 Q 34 18 36 8" />
    </clipPath>
  </defs>
  <path d="M 4 8 Q 3 3 6 2 Q 11 1 15.5 2 Q 20 4 15 9 Q 6 18 4 8 
               M 36 8 Q 37 3 34 2 Q 29 1 24.5 2 Q 20 4 25 9 Q 34 18 36 8" stroke="#111" stroke-width="1.5" fill="#111" />
  <path d="M 14 1.5 H 25 V 1.5 H 14" stroke="#111" stroke-width="0.7" />
  <path d="M 18 5 C 18 2.5 22 2.5 22 5" stroke="#111" stroke-width="0.7" fill="none" />
  <rect x="0" y="0" height="100%" width="100%" clip-path="url(#glasses-cut-out)" fill="#222" />
  <rect x="0" height="1.2" width="14" rx=".2" clip-path="url(#glasses-cut-out)" fill="green">
    <animate attributeName="y" from="16" to="-4" dur="2s" repeatCount="indefinite" />
  </rect>
  <rect x="20" height="1.2" width="14" rx=".2" clip-path="url(#glasses-cut-out)" fill="green">
    <animate attributeName="y" from="16" to="-4" dur="2s" repeatCount="indefinite" />
  </rect>

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK