Chromatic abaration effect
This commit is contained in:
parent
e477c27b3a
commit
6db60fa38a
3 changed files with 39 additions and 2 deletions
21
layouts/partials/chroma.html
Normal file
21
layouts/partials/chroma.html
Normal file
|
@ -0,0 +1,21 @@
|
|||
<!-- Chromatic abaration effect -->
|
||||
<svg width="0" height="0">
|
||||
<filter id="chroma">
|
||||
<feColorMatrix type="matrix"
|
||||
result="red_"
|
||||
values="4 0 0 0 0
|
||||
0 0 0 0 0
|
||||
0 0 0 0 0
|
||||
0 0 0 1 0"/>
|
||||
<feOffset in="red_" dx="2" dy="0" result="red"/>
|
||||
<feColorMatrix type="matrix"
|
||||
in="SourceGraphic"
|
||||
result="blue_"
|
||||
values="0 0 0 0 0
|
||||
0 3 0 0 0
|
||||
0 0 10 0 0
|
||||
0 0 0 1 0"/>
|
||||
<feOffset in="blue_" dx="-3" dy="0" result="blue"/>
|
||||
<feBlend mode="screen" in="red" in2="blue"/>
|
||||
</filter>
|
||||
</svg>
|
After Width: | Height: | Size: 519 B |
Loading…
Add table
Add a link
Reference in a new issue