Skip to content

Instantly share code, notes, and snippets.

View levinmejia's full-sized avatar

Levin Mejia levinmejia

View GitHub Profile
<a href="/cart" id="cart-total">
{{ 'santa-hat.png' | asset_url | img_tag }}
{% if shop.money_format == '${{amount}}' %}
<span id="cart-price">{{ cart.total_price | money | replace: '.00', '' }}</span>
{% else %}
<span id="cart-price">{{ cart.total_price | money }}</span>
{% endif %}
</a>
<style>
.grayscale {
-webkit-filter: grayscale(1);
filter: grayscale(1);
}
.invert {
-webkit-filter: invert(.8);
filter: invert(.8);
}
.image-blur {
-webkit-filter: blur(10px);
filter: blur(10px);
}
filter: none | blur() | brightness() | contrast() | drop-shadow() | grayscale() | hue-rotate() | invert() | opacity() | saturate() | sepia() | url();
<figure class="aden">
<img src="../img.png">
</figure>
<div class="filter-img">
<div class="circle multiply"></div>
<img src="img/backpack-lake.jpg">
</div>
<style>
.filter-img {
position: relative;
width: 100%;
height: 100%;
<div class="filter-img">
<div class="hello">hello</div>
<img src="img/backpack-lake.jpg">
</div>
<style>
.hello {
position: absolute;
top: 50%;
left: 50%;
.solid-colour-blend {
width: 100%;
height: 300px;
background-color: #F05B6F;
background-image: url('../img/backpack-lake.jpg');
background-position: center center;
background-blend-mode: multiply;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;