Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Hi,
I am trying to create a fade animation for an image in PowerBI that lasts 3 seconds and then disappears. I use the HTML Content custom visual.
Is my code OK? In my report, it doesn't work.
Thanks!
For the CSS:
CSS fade animation =
"
@keyframes fadeOut {
0% {
opacity: 1;
}
100% {
opacity: 0;
}
}
.fade-out {
animation: fadeOut 3s forwards;
}
"
For the HTML:
Hi @AndreeaV
I believe you need to change the HTML measure to this, using fade-out as the class name:
HTML =
"<p>
<span class='fade-out'>" & [Flag] & "</span>
</p>"
This worked for me in a test report.
Does it work for you?
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
76 | |
76 | |
55 | |
37 | |
34 |
User | Count |
---|---|
99 | |
56 | |
51 | |
44 | |
40 |