See demo @ https://timeline.knightlab.com
Advance one slide to Ada Lovelace. As you can see in this JSBin, wrapping this image with jQuery is simple. However, I'm not able to do it on the actual website that I've integrated Timeline JS3.
HTML:
<div class="tl-media-content"><img class="tl-media-item tl-media-image tl-media-shadow" src="https://upload.wikimedia.org/wikipedia/commons/thumb/a/a4/Ada_Lovelace_portrait.jpg/713px-Ada_Lovelace_portrait.jpg" style="max-height: 412px;"></div>
<div class="tl-credit" style="width: 286px;">Wikimedia Commons</div>
<div class="tl-caption" style="width: 286px;"><a href="https://en.wikipedia.org/wiki/Ada_Lovelace#/media/File:Ada_Lovelace_portrait.jpg" title="">Portrait by Alfred Edward Chalon</a></div>
JS:
jQuery(document).ready(function($){
jQuery('.tl-media-item').wrap('<div class="wrappingdiv" />');
});
CSS:
.wrappingdiv {background:red; padding:10px;}
I've tried refining the order of execution (ensuring it executes after timeline.js loads), but it still doesn't seem to work.
Any ideas?