I have placed the timeline coding(followed https://github.com/NUKnightLab/TimelineJS) inside a bootstrap tab, if it is placed in first tab(active tab) it is loaded correctly but if it is placed in rest of tabs its not loaded correctly, i have placed in sixth tab
Please help me what to do
This is my code
<div class="tab-pane " id="tab6">
<script>
$(document).ready(function() {
createStoryJS({
type: 'timeline',
width: '600',
height: '700',
source: '<%= @orbituarysite.id %>',
embed_id: 'my-timeline'
});
});
</script>
<div id="my-timeline"></div>
</div>
If i resize the window or open browser console its loading correctly
I tried giving active for this tab and in the end of page hide and show using jquery but it was of no use
Please suggest me a solution.