Jump to content
Search Community

Split div into columns and rows and transform?

ajhalls test
Moderator Tag

Warning: Please note

This thread was started before GSAP 3 was released. Some information, especially the syntax, may be out of date for GSAP 3. Please see the GSAP 3 migration guide and release notes for more information about how to update the code to GSAP 3's syntax. 

Recommended Posts

Can I use this to take apart a div that has sub content and then manipulate it in the same ways as https://greensock.com/splittextfield but not with text?

 

I am building a web slider application and would like to know if I can use Greensock to acheive these types of effects on this page between slides?

http://wowslider.com/

 

I would love to be able to not have to flatten the slide manually, but can using this http://cburgmer.github.io/rasterizeHTML.js/ and then chop the image into a bunch of individual items that can be manipulated individually like the splitText does with letters.

 

Alan

Link to comment
Share on other sites

Hi and welcome to the GreenSock forums.

That's an interesting utility you found. I'm sure that once you use it to create tiles you could animate them, but 3D effects might be tricky unless you are using a library that handles that for you.

 

Typically the image grid effects are created by using a single image as an offset background image in many many divs like:

http://codepen.io/rhernando/pen/azNBom

 

And yes, once things are split into the grid, animating them is no problem with GSAP.

 

To be clear though, regardless of whether you use html flattened to canvas or the background image technique, GSAP does not do any of the splitting into rows and columns.

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...