Embedding Tableau Projects in HTML using JavaScript
Fully functional Tableau projects can be embedded into an HTML page using the Tableau API and JavaScript. In addition, the widgets, such as filters, can be accessed and controlled using JavaScript for a richer user experience. For example, this feature can be used to animate Tableau projects.
Examples
https://codepen.io/BonnieS__/pen/Vyxvxw
https://codepen.io/BonnieS__/pen/XVqmPy