Here Thar Be Dragons

Experimental playground. Early developments, temporary works-in-progress. Code will appear and disappear here. This is just a place for working out ideas.

SVG Eye Icons CSS

Look at me!

Stop looking at me!

.eye-show::before {
    display: inline-block;
    content: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' aria-hidden='true' viewBox='0 0 32 32'%3E%3Cpath fill='none' stroke='%23222' stroke-width='1.3333' stroke-linejoin='miter' stroke-linecap='butt' stroke-miterlimit='4' d='M16 21.333c2.946 0 5.333-2.388 5.333-5.333s-2.388-5.333-5.333-5.333c-2.946 0-5.333 2.388-5.333 5.333s2.388 5.333 5.333 5.333zM16 25.333c7.821 0 13.333-8 13.333-9.333s-5.512-9.333-13.333-9.333c-7.821 0-13.333 8-13.333 9.333s5.512 9.333 13.333 9.333z'%3E%3C/path%3E%3C/svg%3E");
    width: 1em; 
    height: 1em; 
    font-size: 22px; /* sets the size of the icon */
    margin-right: 8px;
    vertical-align: bottom;
}
.eye-hide::before {
    display: inline-block;
    content: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' aria-hidden='true' viewBox='0 0 32 32'%3E%3Cpath fill='none' stroke='%23222' stroke-width='1.3333' stroke-linejoin='miter' stroke-linecap='butt' stroke-miterlimit='4' d='M16 21.333c2.946 0 5.333-2.388 5.333-5.333s-2.388-5.333-5.333-5.333c-2.946 0-5.333 2.388-5.333 5.333s2.388 5.333 5.333 5.333zM16 25.333c7.821 0 13.333-8 13.333-9.333s-5.512-9.333-13.333-9.333c-7.821 0-13.333 8-13.333 9.333s5.512 9.333 13.333 9.333zM5.333 26.667l21.333-21.333'%3E%3C/path%3E%3C/svg%3E");
    width: 1em; 
    height: 1em; 
    font-size: 22px; /* sets the size of the icon */
    margin-right: 8px;
    vertical-align: bottom;
}
<p class="eye-show">Look at me!</p>
<p class="eye-hide">Stop looking at me!</p>