Trying to create a 3D Hover Effect using JS

Yes, you can refer to Custom Element documentation , the API , and some examples to learn from.