Jump to content
Search Community

IMPOSSIBLE AMBITIOUS PROJECT

alexxgriffon test
Moderator Tag

Recommended Posts

Hi @alexxgriffon. I wasn't quite sure what you were looking for here - did you have a GSAP-specific question we can help you with? Or were you asking someone to build what you described? We'd be happy to answer any GSAP-specific questions but we don't have the resources to provide free consulting services for building projects to spec. 

 

Good luck with the project, though. It looks like it could be a cool effect. 

  • Like 3
Link to comment
Share on other sites

Hi @alexxgriffon;

 

if I was too undertake what you describe I think I would try one of two approaches:
If it is concerns a large image and you are concerned a lot about performance on the users' side ich would look into 'canvas' for copying the hexagons from the original. I'm not a regular user of canvas functionality, so I would have to dig into that, but it's not rocket science as I seem to remember.
If performance isn't the main issue and you don't want to work with canvas, css-masking probably should do the trick.
 

Still, if it is only one and the same image you could also cut out al the hexagons in Photoshop (it is even possible to built an action, if one is a Photoshop wiz) and work with the resulting pngs placed absolutely. I'd think that more of a last resort but depending on the situation and your skillset it make move things from 'impossible ambitious' to 'hard manual labour'

 

If that helps a little but you need some pointers, you might find them here i the forum searching with the appropriate keywords. If not I'll try to give you more direction if you tell me which way you'd preferer. Good luck.

  • Like 2
Link to comment
Share on other sites

9 hours ago, GreenSock said:

Hi @alexxgriffon. I wasn't quite sure what you were looking for here - did you have a GSAP-specific question we can help you with? Or were you asking someone to build what you described? We'd be happy to answer any GSAP-specific questions but we don't have the resources to provide free consulting services for building projects to spec. 

 

Good luck with the project, though. It looks like it could be a cool effect. 

 

Thank you, sire)

In the description of the project I listed
purposes that I set for myself)

At the moment I am looking for information about other parameters except scale and opacity I can apply in gsap JS section. I would like to give the block a rotation like:
transform: rotateX(180deg);

Link to comment
Share on other sites

17 hours ago, alexxgriffon said:

At the moment I am looking for information about other parameters except scale and opacity I can apply in gsap JS section. I would like to give the block a rotation like:
transform: rotateX(180deg);

You can animate pretty much any property of any object with GSAP. You're not limited to a pre-determined set of properties. To do rotateX(180deg), it'd simply be:

{ rotationX: 180 }

 

  • Like 1
Link to comment
Share on other sites

I'm a bit confused about the exact question, but it seems like you are using spans which can't have transforms applied because they are "non-replaceable inline" elements.

 

please see this demo and note that the span does not rotate but the div does

 

See the Pen MWJgmXY?editors=0010 by snorkltv (@snorkltv) on CodePen

 

This is not a GSAP issue, it's a limit of CSS. To apply transforms to a span try setting it's display:block or display:inline-block in the css.

 

FWIW it's just best to use divs or block-level elements.

  • Like 1
Link to comment
Share on other sites

@alexxgriffon

If possible it would be great if you could fork your CodePen each time you make significant changes. That way people that read the thread later will be less confused.

 

I'm sorry to say that Carls explanation isn't true in your case. Your spans are flex-children, that makes it possible for them to be transformed, even as they are inline elements. (You can read up on the intricacies of the display property in relation to the box-model and the flex-box following the link Carl provided)

 

See the Pen oNBveGN by mdrei (@mdrei) on CodePen

 

And here is a fork for your project that maybe could help you (I added rotation to your tween and perspective to your container section)

 

See the Pen gOgYxmw?editors=1111 by mdrei (@mdrei) on CodePen

  • Like 4
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...