Use SVG filter to rewrite pixelation mode
tomchen opened this issue · comments
Tom Chen commented
No canvas at all now.
Files:
- Old version of ./src/components/effects/Pixelation.tsx
- Old version of ./src/utils/canvasImageFit.ts
- 955d46b
Refs:
- https://developer.mozilla.org/en-US/docs/Web/CSS/filter
- https://developer.mozilla.org/en-US/docs/Web/SVG/Element/filter
- https://stackoverflow.com/questions/52937708/why-does-applying-a-css-filter-on-the-parent-break-the-child-positioning
- https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Positioning/Understanding_z_index/The_stacking_context