Jump to content

Question about phaser


Mathitos
 Share

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

Link to comment
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.

Link to comment
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 ?

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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