Iframes are used to show information from one website on another. examples are iframes iclude:
analytics snippets
video (youtube, vimeo, dailymotion, etc.)
careers plugins
investor information
interactive third party services (Hubspot forms, etc)
etc.
basically an iframe (or embed code) is an easier version of hooking into an api to pull data. I don’t know why you would want to use an iframe for a slider but if it is because the slider is being provided by another site then typically that site will provide an iframe code to paste into your site.
If all of the information in your slider is native to the page you are working on then I would suggest a simple set of divs and the use of slick.js. slick - the last carousel you'll ever need
All you have to do is download the files for slick.js, find the slick.js and slick.css files and plug them into hubspot in the design manager (give them their own files), then in a custom module, in the right sidebar, attach the css and js file. after that you can use any of the examples on the slick.js examples page and it should work. This is my go to slider script and I have used it for years so I know it will work for you.
Need help? Hire Us Here