Hacker News new | ask | show | jobs
by johnhenry 3568 days ago
I wonder how effective this is and whether or not it's been used across multiple sites? It seem's like it could be useful, but also, it looks "dangerous"?
1 comments

What exactly is "dangerous" about this? The functionality is pretty straightforward - it just creates a parent element of the correct width/height around an element that dictates the original elements height, and then resizes the inside one proportionately as needed for responsiveness (using CSS only).
"Dangerous" was the wrong word, and I should have expanded further. Also, it appears as though my use case isn't specifically for what this is designed, so I take that back. I'm thinking of the case in which this may be useful to modify older complex sites where chosen selectors might cause unexpected results. Apologies.
Reframe.js is written the way that it is (to do 1 thing simply) to put the power back in the hands of the asset owner. This approach was chosen over trying to solve all ~all of the things~.
What is your use case?