Stimulus를 활용한 마우스 호버 시 비디오 미리보기 구현 방법
HTML5 비디오 요소의 loadedmetadata 이벤트를 활용하여 비디오의 메타데이터가 로드된 시점에 정확한 미리보기 시점을 계산할 수 있습니다.
#active_storage #stimulus_controller
https://ruby-news.kr/articles/video-preview-on-hover-with-stimulus
Stimulus를 활용한 마우스 호버 시 비디오 미리보기 구현 방법
HTML5 비디오 요소의 loadedmetadata 이벤트를 활용하여 비디오의 메타데이터가 로드된 시점에 정확한 미리보기 시점을 계산할 수 있습니다.
#active_storage #stimulus_controller
https://ruby-news.kr/articles/video-preview-on-hover-with-stimulus