Mathitos

Question about phaser

Recommended Posts

I was searching for a framework to help me developing a website, the intent was to make a timeline, who each time the mouse is above each item, it expands, and can link to a extenal page if it's clicked. I know phaser is mainly to develop games, but can it help me solve my problem?

 

ps: sorry for my bad english

Share this post


Link to post
Share on other sites

You're describing exactly the use case of CSS. No need to involve any scripting to accomplish what you want. The CSS hover (https://developer.mozilla.org/en-US/docs/Web/CSS/:hover) pseudo-class is all you need.

Pulling in JavaScript to do something that CSS can do is only going to slow down your page's load time, especially when you want to pull in Phaser which is a large library. Plus, if a browser doesn't support canvas or webgl, your page won't work. Literally EVERY browser supports the hover pseudo-class.

Share this post


Link to post
Share on other sites
15 minutes ago, breed said:

You're describing exactly the use case of CSS. No need to involve any scripting to accomplish what you want. The CSS hover (https://developer.mozilla.org/en-US/docs/Web/CSS/:hover) pseudo-class is all you need.

Pulling in JavaScript to do something that CSS can do is only going to slow down your page's load time, especially when you want to pull in Phaser which is a large library. Plus, if a browser doesn't support canvas or webgl, your page won't work. Literally EVERY browser supports the hover pseudo-class.

thanks so much, i was going to use this oportunity to learn phaser, but maybe next time then, thanks for the reply again 🙂

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

  • Recently Browsing   0 members

    No registered users viewing this page.