Comments (7)
Sounds interesting! But as far as I know, there is no way to do blur with CSS in IE10+, as mentioned in your second link https://github.com/Schepp/CSS-Filters-Polyfill#a-word-regarding-ie-10 the only way to do blur in IE is using svg.
It would be interesting to create another component using only css filters, though.
from react-blur.
You are completely right. Using the right tool for the right job in
technology takes time.
Your approach works but can't be as performant as CSS that uses hardware
acceleration. Think about the calculations you are doing in a mobile phone.
In order to see that with numbers you can try
https://github.com/mrdoob/stats.js
with different approaches.
Going forward I would use your code for the cases where CSS is not
available. You can check those cases with Modernzr. In this way you can
still use your code or CSS filters whichever is best (desktop, mobile, etc)
Good work! There are some other interesting filters libraries
http://evanw.github.io/glfx.js/docs/
http://camanjs.com/
http://mezzoblue.github.io/PaintbrushJS/demo/usage.html
Gerard
On 9 Mar 2015 05:17, "Javier Bórquez" [email protected] wrote:
Sounds interesting! But as far as I know, there is no way to do blur with
CSS in IE10+, as mentioned in your second link
https://github.com/Schepp/CSS-Filters-Polyfill#a-word-regarding-ie-10 the
only way to do blur in IE is using svg.It would be interesting to create another component using only css
filters, though.—
Reply to this email directly or view it on GitHub
#2 (comment).
from react-blur.
Probably we can get a very smooth blur transition of we pre-render some images (like with 0px, 10px, 20px and 30px of blur radius), stack them, and then just fade one by one. The blurred canvas are just images after all, and opacity changes on the images should be even faster than the css blur.
Let me try it, I will create and experiment for this over the weekend.
from react-blur.
CSS Filters were originally ripped off from SVG so I doubt they're all that much better.
from react-blur.
I don't know about that but its not what I have seen.
http://blog.chromium.org/2012/06/accelerated-css-filters-landed-in.html
As I said, add the performance tracing tool and check for different
devices. Mainly mobile as desktop will obviously perform better.
Don't take my word. Check it.
On 10 Mar 2015 13:22, "RangerMauve" [email protected] wrote:
CSS Filters were originally ripped off from SVG so I doubt they're all
that much better.—
Reply to this email directly or view it on GitHub
#2 (comment).
from react-blur.
Closing this for now. I will create another component based on #2 (comment) and if it is not fast enough for mobile, I will investigate doing css blur with canvas as fallback, as suggested by gsans.
from react-blur.
Bear in mind CSS blur can be really troublesome. With our testing we actually changed to this component because CSS blurring was just way too slow. Not slow initially, but whenever we scroll or animate items that move our blurred image it seems to be re-blurring a ton.
from react-blur.
Related Issues (14)
- Extra code? HOT 2
- React Warning; unknown props on div HOT 1
- Typescript support
- SVG?
- React ^16 HOT 2
- Canvas to match Parent width / height HOT 1
- [Attorney] add-a-case (party) screen
- Browser support HOT 1
- Blob Support
- componentWillReceiveProps should not re-blur image unless props changed HOT 2
- React 17 HOT 2
- make styles inline? HOT 2
- Cannot resolve module 'react-addons-pure-render-mixin' HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-blur.