Using custom js

would it be possible to incorporate code this that shown on the link above into a Blocs Site?

Looks possible as the setup is easy. Can try use the custom attributes in Blocs