viiprogrammer Posted January 26, 2019 Report Share Posted January 26, 2019 Понадобилось реализовать подобную штуковину и решил что может кому-то понадобится готовое решение Для установки надо: В style.css внизу добавить: .Blink { animation: blinker 1.5s cubic-bezier(.5, 0, 1, 1) infinite alternate; } @keyframes blinker { from { opacity: 1; } to { opacity: 0; } } В profile.php есть строка которая начинается так $tpl->set('{online}', '..... после строки: if($row_online['user_last_visit'] >= $online_time) и вот ту строку мы заменяем на: $tpl->set('{online}', '<div class="Blink" style="width: 10px;height: 10px;background: #38ad1b;-moz-border-radius: 50px;-webkit-border-radius: 50px;border-radius: 50px;display: inline-block;"></div>'); Вот и все :) 3 Quote Link to comment Share on other sites More sharing options...
xakepok Posted January 26, 2019 Report Share Posted January 26, 2019 спасибо,огромное так все просто,тока не кто не хотел светить))как делается огромное спасибо :) Quote Link to comment Share on other sites More sharing options...
pase89 Posted March 7, 2019 Report Share Posted March 7, 2019 не копируйте код $tpl->set('{online}', '<div class="Blink" style="width: 10px;height: 10px;background: #38ad1b;-moz-border-radius: 50px;-webkit-border-radius: 50px;border-radius: 50px;display: inline-block;"></div>'); а вводите ручками. В коде есть HEX лишний. Quote Link to comment Share on other sites More sharing options...
Doksi Posted March 12, 2019 Report Share Posted March 12, 2019 Спасибо! Quote Link to comment Share on other sites More sharing options...
wedytd Posted October 10, 2021 Report Share Posted October 10, 2021 (edited) В 26.01.2019 в 17:27, viiprogrammer сказал: Понадобилось реализовать подобную штуковину и решил что может кому-то понадобится готовое решение Для установки надо: В style.css внизу добавить: .Blink { animation: blinker 1.5s cubic-bezier(.5, 0, 1, 1) infinite alternate; } @keyframes blinker { from { opacity: 1; } to { opacity: 0; } } В profile.php есть строка которая начинается так $tpl->set('{online}', '..... после строки: if($row_online['user_last_visit'] >= $online_time) и вот ту строку мы заменяем на: $tpl->set('{online}', '<div class="Blink" style="width: 10px;height: 10px;background: #38ad1b;-moz-border-radius: 50px;-webkit-border-radius: 50px;border-radius: 50px;display: inline-block;"></div>'); Вот и все Не мигает , да и не красиво как-то UPD: После очистки кеша мигает Edited October 10, 2021 by wedytd Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.