Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

156
Views
How to add a progressbar animate to my notify?

I would like someone to help me put an animated progress bar in colors below the [border-bottom: 3px solid #a3c846;] eg slowing down with time on variable [timer], anyone to help me? Thanks!

https://forum.cfx.re/uploads/default/original/4X/2/6/d/26d360320bb48dca214037102e2188ddeb7a129d.png

$(document).ready(function(){
    window.addEventListener("message",function(event){
        var html = "<div id='"+event.data.css+"'>"+event["data"]["mensagem"]+"</div>"
        $(html).fadeIn(500).appendTo("#notifications").delay(event["data"]["timer"]).fadeOut(500);
    })
});
#sucesso {
    background: rgba(34,34,34,0.75) url("images/check.png") no-repeat center left 11px;
    border-bottom: 3px solid #a3c846;
}
<html>
    <head>
        <meta charset="UTF-8">
        <title>#creative</title>
        <script src="nui://game/ui/jquery.js"></script>
        <script src="https://code.jquery.com/ui/1.12.1/jquery-ui.min.js" integrity="sha256-VazP97ZCwtekAsvgPBSUwPFKdrwD3unUfSGVYrahUqU=" crossorigin="anonymous"></script>
        <link href="https://fonts.googleapis.com/css2?family=Roboto&display=swap" rel="stylesheet">
        <link rel="stylesheet" href="style.css">
    </head>
    <body>
        <div id="notifications">
        </div>
        <script src="app.js"></script>
    </body>
</html>

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Try something like

$(html).fadeIn(500).appendTo("#notifications")   .animate({ width: '0%' }, event["data"]["timer"]);
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!