Skip to content

Commit d4cecc9

Browse files
Added a new filter Pink by vincent
1 parent 6f21810 commit d4cecc9

2 files changed

Lines changed: 50 additions & 0 deletions

File tree

site/css/demo-site.css

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,51 @@
454454
background: -webkit-radial-gradient(circle, transparent 70%, #222222 150%);
455455
background: radial-gradient(circle, transparent 70%, #222222 150%);
456456
mix-blend-mode: multiply; }
457+
/*
458+
*
459+
* Pink
460+
*
461+
*/
462+
463+
.pink-filter {
464+
position: relative;
465+
-webkit-filter: contrast(1.1) brightness(2.1) saturate(1.3);
466+
filter: contrast(1.1) brightness(2.1) saturate(1.3);
467+
}
468+
469+
.pink-filter img {
470+
width: 100%;
471+
z-index: 1;
472+
}
473+
474+
.pink-filter:before {
475+
content: '';
476+
display: block;
477+
height: 100%;
478+
width: 100%;
479+
top: 0;
480+
left: 0;
481+
position: absolute;
482+
pointer-events: none;
483+
z-index: 2;
484+
}
485+
486+
.pink-filter:after {
487+
content: '';
488+
display: block;
489+
height: 100%;
490+
width: 100%;
491+
top: 0;
492+
left: 0;
493+
position: absolute;
494+
pointer-events: none;
495+
z-index: 3;
496+
}
457497

498+
.pink-filter:after {
499+
background: rgba(243, 106, 188, 0.3);
500+
mix-blend-mode: screen;
501+
}
458502
/*
459503
* 1977
460504
*

site/index.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,12 @@ <h2 class="title--top-sub">A tiny (&lt;1kb gzipped!) library for recreating <a h
5757
<figcaption>#nofilter</figcaption>
5858
</figure>
5959
</li>
60+
<li class="demo__item">
61+
<figure class="pink-filter">
62+
<img>
63+
<figcaption>Pink</figcaption>
64+
</figure>
65+
</li>
6066
<li class="demo__item">
6167
<figure class="_1977">
6268
<img>

0 commit comments

Comments
 (0)