On our site, we've installed:
When we send a giveaway ID to the delivery service we use the jsonwebtoken npm package to encrypt the ID before sending it. We create a callback URL that includes the encrypted ID. The delivery service will use this URL to let us know the giveaway has been delivered.
Then, when the delivery service lets us know that the giveaway has been delivered, we decrypt the ID so we can update the delivered giveaway's data in the Giveaways collection.
Towards the bottom of the Home page, we add a little pizzazz to our site by creating some text that rotates around our logo. Thanks to the wix-animation-helper Velo package we can create this effect with a single import and one line of code.
We start by importing the spin()
function from the Velo package.
Then, inside the onReady
event handler, we simply call the rotate function. When we call it, we pass the element that we want to spin and how long, in milliseconds, each rotation should take.