Hi everyone!
I want to make an interactive HTML text that reacts to a slider. I can do that in plotly, but it doesn't render very well and I'm kind of doing dirty hacking. I made a reprex:
library(plotly)
library(dplyr)
data.frame(text = paste(
"i want to eat",
1:7,
"coockies"),
idx = 1:7) %>%
plot_ly(frame =~ idx) %>%
add_text(text =~ text, x = 1, y = 1,
textfont = list(size = 40)) %>%
layout(
xaxis = list(
title = "",
zeroline = FALSE,
showline = FALSE,
showticklabels = FALSE,
showgrid = FALSE
),
yaxis = list(
title = "",
zeroline = FALSE,
showline = FALSE,
showticklabels = FALSE,
showgrid = FALSE
),
showlegend = F
) %>%
config(displayModeBar = F)
Any ideas?