Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CSS Transforms for visualization #113

Merged
merged 4 commits into from
Jul 2, 2015
Merged

Conversation

rupl
Copy link
Contributor

@rupl rupl commented Jul 2, 2015

I love this visualization! but it could be done in a more GPU-friendly way. This branch revamps the animations using CSS Transforms.

I did not attempt to keep the original shapes since scale() and position: absolute work differently. However, I did try to make sure that the text has at least three elements behind it at all times, so that the contrast is sufficient.

I also added unprefixed animations while I was in there.

@rupl
Copy link
Contributor Author

rupl commented Jul 2, 2015

Before

this-is-rwd-before

After

this-is-rwd-after

I think we could get it to 60FPS by removing a couple elements or maybe the box-shadow. But I like the subtleness of the box-shadow and wanted to at least start the PR by altering as little as possible.

bradfrost added a commit that referenced this pull request Jul 2, 2015
CSS Transforms for visualization
@bradfrost bradfrost merged commit ae1ee9f into bradfrost:gh-pages Jul 2, 2015
@bradfrost
Copy link
Owner

Hahaha this is freaking amazing, @rupl! At first I was wondering what this was even about, then I realized it's for the homepage. And you're right, holy smokes is it a lot smoother.

Thanks so much for this!

@rupl
Copy link
Contributor Author

rupl commented Jul 6, 2015

glad you dig it!

bradfrost added a commit that referenced this pull request Jul 6, 2015
Follow-up to #113 - prefixed transforms
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants