You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm looking for the option to add images or videos inside the blob. This way they could show on hover in a similar way as the tooltips do. Is this something that might be possible
Super interesting use case! I think that should be possible to add. Could you clarify how would you like such a feature to work, and what would be the appropriate API for you?
I think the best would be to use Blobity's JS API to achieve such behavior, where you could set a specific image/video on the blob by calling something like below when you enter specific element, or whenever really:
to get rid of the image and fall back to the original color.
It could also be done with the data attributes like data-blobity-media, but there is much less space for any additional settings like the positioning of the image/video, or stuff like that.
Would that work, or do you have some more requirements in mind for this feature?
I think using setMedia() and resetMedia() would be a clean way to implement it.
It would be handy to be able to use setMedia() for setting the media and only showing it when there's a 'data-blobity-media' tag on an element, similar to data-blobity-magnetic.
Having separate options for when the media shows might be interesting too. (size, blending mode, object positioning, object fit, ...)
Activity
gmrchk commentedon Jul 10, 2022
Super interesting use case! I think that should be possible to add. Could you clarify how would you like such a feature to work, and what would be the appropriate API for you?
I think the best would be to use Blobity's JS API to achieve such behavior, where you could set a specific image/video on the blob by calling something like below when you enter specific element, or whenever really:
and later
to get rid of the image and fall back to the original color.
It could also be done with the data attributes like
data-blobity-media
, but there is much less space for any additional settings like the positioning of the image/video, or stuff like that.Would that work, or do you have some more requirements in mind for this feature?
Neomas commentedon Jul 11, 2022
I think using setMedia() and resetMedia() would be a clean way to implement it.
It would be handy to be able to use setMedia() for setting the media and only showing it when there's a 'data-blobity-media' tag on an element, similar to data-blobity-magnetic.
Having separate options for when the media shows might be interesting too. (size, blending mode, object positioning, object fit, ...)