Mathitos Posted August 4, 2017 Share Posted August 4, 2017 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 More sharing options...
rich Posted August 8, 2017 Share Posted August 8, 2017 Technically it could do this, but I would use something more suited for the task. Juan 1 Link to comment Share on other sites More sharing options...
Mathitos Posted August 8, 2017 Author Share Posted August 8, 2017 2 hours ago, rich said: Technically it could do this, but I would use something more suited for the task. thanks for the answer, what would be the down sides of using phaser? Link to comment Share on other sites More sharing options...
snowbillr Posted August 8, 2017 Share Posted August 8, 2017 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 More sharing options...
Mathitos Posted August 8, 2017 Author Share Posted August 8, 2017 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 More sharing options...
snowbillr Posted August 8, 2017 Share Posted August 8, 2017 No worries! I totally understand getting excited about a project to learn a new library/framework/language/concept/whatever. Link to comment Share on other sites More sharing options...
Recommended Posts