Published unlisted
Edited
Oct 17, 2019
Insert cell
md`# Rotate 90 `
Insert cell
html`
<div class="container">
<div class="rotate_90">
<img src="https://s3.amazonaws.com/c.loud/11-sandisfield/images/downstairs/office/20191004_130006.jpg" id="rotate_90">
</div>
</div>
`
Insert cell
{
var id = 'rotate_90';//The ID of the <img> element to rotate
var deg = 90;//The rotation angle, in degrees
document.getElementById(id).style = 'transform: rotate(' + deg + 'deg)';
}
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more