If you're a valued part of their team your boss(es) are unlikely to be as excited about your new adventure as you are.
Fine to say you're leaving to pursue your own thing, but it's not the time to be offering anything other than help in finding or training a replacement and making the transition easy on them so they look back at you in the most favorable light when you do approach them down the road.