I have a small issue: my code works, but Streamlit is showing it in a miniscule iframe so it isn’t actually usable. The code is below and a picture of the output is also.
Could anyone perhaps help?
content = """
<script src="https://cdn.layerjs.org/libs/layerjs/layerjs-0.5.2.min.js" defer=""></script>
<link href="https://cdn.layerjs.org/libs/layerjs/layerjs-0.5.2.css" type="text/css" rel="stylesheet">
# <link href="style.css" rel="stylesheet">
<style>
div { height: 100px;
text-align: center;
}
</style>
</head>
<body height: 1000% lj-type="stage">
<div lj-type="layer" id="content-layer" lj-fit-to="responsive-width" lj-transition="fade" height=1000px>
<div lj-type="frame" id="home" lj-transition="zoomout">
Hello World
<br>
<link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
<style>
.zoom {
padding: 10px;
width: 210px;
height: 210px;
transition: transform .21s; /* Animation */
margin: 0 auto;
}
.zoom:hover {
transform: scale(1.1); /* (110% zoom - Note: if the zoom is too large, it will go outside of the viewport) */
}
</style>
<a href="#more" id='Image 1'><img width='21%' src='https://images.unsplash.com/photo-1565130838609-c3a86655db61?w=200' class='zoom w3-circle w3-hover-opacity'>
</a>
</div>
<div lj-type="frame" id="more">
More content...
<br>
<a href="#home&t=2s&p=zoomout">Back to home</a>
</div>
</div>
"""
# my_js = f"<script>{content}</script>"
components.html(content)
Output: