Onebox Twitter embedding

네, 가능합니다. 이 부분이 iframe을 생성하는 라인입니다.

@awesomerobot 님께 가장 유용한 HTML 구조는 어떤 것일까요? 다음과 같은 형태인가요?

<div class='tweet-images'>
  <div class='aspect-image-full-size' style='--aspect-ratio:#{width}/#{height};'/>
    <iframe class='tweet-video' src='https://twitter.com/i/videos/blah' width='123' height='456' frameborder='0' allowfullscreen></iframe>
  </div>
</div>

그리고 이미지에서 사용하는 aspect-image-full-size 로직을 재사용할 수 있을까요?

1개의 좋아요