[TW5] Popup transclusion on mouse over?

254 views
Skip to first unread message

leeand00

unread,
Nov 18, 2016, 12:37:49 PM11/18/16
to TiddlyWiki
Is there any way to do a Popup transclusion on mouse over in TW5? 

If not what's the best way to write something like that?


Mat

unread,
Nov 19, 2016, 12:55:49 PM11/19/16
to TiddlyWiki
Here's a start. No idea if it is "the best" way and there's probably some more native tw5 way that I can't think of right now because I'm temporarily a bit out of the game. I hope you was the RevealWidget... which doesn't work for hover straight away but maybe with some fiddling..

<:-)

<div class="foo">
hover me
<span class="bar">
{{HelloThere}}
</span>
</div>

<style>
.foo .bar {
  display:none;
}
.foo:hover .bar {
  display:block;
  position:absolute;
  background:white;
  border:1px solid gray;
  padding:10px;
  z-index:2;
}
</style>


leeand00

unread,
Nov 23, 2016, 11:38:31 AM11/23/16
to TiddlyWiki
Okay thanks Mat!

Andrew Daum

unread,
Dec 4, 2016, 5:48:37 PM12/4/16
to TiddlyWiki

Tobias Beer

unread,
Dec 9, 2016, 1:38:52 PM12/9/16
to tiddl...@googlegroups.com
Hi leeand00,

Not sure if that's what you're after, but there's:


I could also make tobibeer/appear do it's magick on-hover,
but so far no one has requested it and hover generally
doesn't provide the best UX (think mobile).


Best wishes,

Tobias.
Reply all
Reply to author
Forward
0 new messages