gifffer icon indicating copy to clipboard operation
gifffer copied to clipboard

title (tooltip) is ignored by gifffer

Open CarlosOnline opened this issue 4 years ago • 0 comments

The title (tooltip) is lost when gifffer is applied to image. Please apply the image's title tag to the output html.

Repro: <img data-gifffer="apples.gif" data-gifffer-alt="Apples" title="Click to show apples"/>

Results:

<button style="position:relative;cursor:pointer;width:200px;height:112px;background:none;border:none;padding:0;" aria-hidden="true">
    <div class="gifffer-play-button" style="width:60px;height:60px;border-radius:30px;background:rgba(0, 0, 0, 0.3);position:absolute;top:50%;left:50%;margin:-30px">
        <div style="width: 0;height: 0;border-top: 14px solid transparent;border-bottom: 14px solid transparent;border-left: 14px solid rgba(0, 0, 0, 0.5);position: absolute;left: 26px;top: 16px"/>
    </div>
    <canvas width="200" height="112" style="width: 100%; height: 100%;"/>
</button>

CarlosOnline avatar Mar 08 '20 19:03 CarlosOnline