Always ask yourself two questions: Why do you do this? What do you want to do tomorrow / Who do you want to be? There always should be a real reason of whatever you do. Is it needed for a job, for someone else to solve real problem? Will it bring you or someone else more money? If you can't answer those questions, then something is wrong. You should do something for purpose, not just in sake of doing it for fun. Fun is something you always will "ignite" and "reignite" time to times, so it's absolutely normal. You can also try investing your time into something different like traveling, writing, camping, martial arts, whatever. Try as much as you can, life is too short.
Time is core part of skill. You practice, and practice again and again. After all, you should know what exactly are you focusing on, what exactly do you want to achieve. If you have no clear vision, you will never be there. Always set up goals, plan how to reach them, and start.
Finally, fronted and web today is everywhere, you see WebAssembly, WebVR, WebGL, modern games or interactive programs like audio/video editors right in the browser, AI and ML in web, voice recognition, NLP, whatever. When I started, nothing of this existed. You have so many choices and opportunities today. Just answer the damn question - Why?
The best way to motivate yourself is Memento Mori.