Skip to content
DataMiner DoJo

More results...

Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
Search in posts
Search in pages
Search in posts
Search in pages
Log in
Menu
  • Updates & Insights
  • Questions
  • Learning
    • E-learning Courses
    • Empower Replay: Limited Edition
    • Tutorials
    • Open Classroom Training
    • Certification
      • DataMiner Fundamentals
      • DataMiner Configurator
      • DataMiner Automation
      • Scripts & Connectors Developer: HTTP Basics
      • Scripts & Connectors Developer: SNMP Basics
      • Visual Overview – Level 1
      • Verify a certificate
    • Video Library
    • Books We Like
    • >> Go to DataMiner Docs
  • Expert Center
    • Solutions & Use Cases
      • Solutions
      • Use Case Library
    • Markets & Industries
      • Media production
      • Government & defense
      • Content distribution
      • Service providers
      • Partners
      • OSS/BSS
    • Agile
      • Agile Webspace
      • Everything Agile
        • The Agile Manifesto
        • Best Practices
        • Retro Recipes
      • Methodologies
        • The Scrum Framework
        • Kanban
        • Extreme Programming
      • Roles
        • The Product Owner
        • The Agile Coach
        • The Quality & UX Coach (QX)
    • DataMiner DevOps Professional Program
      • About the DevOps Program
      • DataMiner DevOps Support
  • Downloads
  • More
    • DataMiner Releases & Updates
    • Feature Suggestions
    • Climb the leaderboard!
    • Swag Shop
    • Contact
      • General Inquiries
    • Global Feedback Survey
  • PARTNERS
    • All Partners
    • Technology Partners
    • Strategic Partner Program
    • Deal Registration
  • >> Go to dataminer.services

Displaying tooltip text for an HTML scrolling texte inside a grid component

Solved589 views8th July 2024HTML LCA Scrolling text Style Guide
2
Alexandre Bonnet [DevOps Enabler]278 8th July 2024 0 Comments

Hello Dojo,

I am trying to create a scrolling text effect within a grid component using HTML and CSS. The text scrolls continuously from right to left. I want to display the same text as a tooltip when hovering over the grid.

Here’s the code I have so far:

<div class=”container”>
<span class=”text” title=”{String Column 2}”>{String Column 2}</span>
</div>
<style>
.container {
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
display: flex;
align-items: center;
flex-wrap: wrap;
}
.text {
position: relative;
left: 0;
width: 100%;
padding: 0 0.5em;
font-size: 1rem;
color: #fff;
text-wrap: nowrap;
animation: flow 60s linear infinite;
}
@keyframes flow {
0% {
transform: translateX(100%);
}
100% {
transform: translateX(-100%);
}
}
</style>

As recommender in the Style guide i’m using the title attribute : https://docs.dataminer.services/user-guide/Advanced_Modules/Dashboards_and_Low_Code_Apps/Low_Code_Apps/Style_guide.html?q=style%20guide

The problem I am facing is that when I hover the grid, if the text is visible on the grid it works just fine , but if the scrolling text isn’t visible on the grid i can see the HTML in the tooltip

Is there a way to force the display of the tooltip text regardless of the scrolling text’s visibility ? I would like the tooltip to always show the same text as the scrolling text, even when the scrolling text is out of view.

Any help or suggestions would be greatly appreciated. Thank you in advance!

Best regards,

Alexandre Bonnet

Alexandre Bonnet [DevOps Enabler] Selected answer as best 8th July 2024

1 Answer

  • Active
  • Voted
  • Newest
  • Oldest
1
Felix Wesemeier [DevOps Catalyst]1.81K Posted 8th July 2024 2 Comments

Hi Alexandre,

I don’t know if this is a good solution, but putting another span around your div works for me:

<span title=”{String Column 2}”><div class=”container”>
<span class=”text”>{String Column 2}</span>
</div>
</span>
<style>
.container {
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
display: flex;
align-items: center;
flex-wrap: wrap;
}
.text {
position: relative;
left: 0;
width: 100%;
padding: 0 0.5em;
font-size: 1rem;
color: #fff;
text-wrap: nowrap;
animation: flow 60s linear infinite;
}
@keyframes flow {
0% {
transform: translateX(100%);
}
100% {
transform: translateX(-100%);
}
}
</style>

Best regards,

Felix

Felix Wesemeier [DevOps Catalyst] Posted new comment 8th July 2024
Alexandre Bonnet [DevOps Enabler] commented 8th July 2024

Hello Felix,

Thank you for your answer it works just fine !

Another solution was to add the pointer-events: none; in the div if you dont want any tooltip at all.

Best regards,

Alexandre

Felix Wesemeier [DevOps Catalyst] commented 8th July 2024

Nice to know, thanks.
Glad to hear that it works.
Br,
Felix

Please login to be able to comment or post an answer.

My DevOps rank

DevOps Members get more insights on their profile page.

My user earnings

0 Dojo credits

Spend your credits in our swag shop.

0 Reputation points

Boost your reputation, climb the leaderboard.

Promo banner DataMiner DevOps Professiona Program
DataMiner Integration Studio (DIS)
Empower Katas
Privacy Policy • Terms & Conditions • Contact

© 2025 Skyline Communications. All rights reserved.

DOJO Q&A widget

Can't find what you need?

? Explore the Q&A DataMiner Docs