square_case Posted February 5 Share Posted February 5 (edited) Here is the website link: https://www.clearchain.house/home-new I wanted to show the portfolio first child image on the right and also on hover the portfolio items it will show the different image. and make the items not clickable. I have attached the section image below. Edited February 5 by square_case More clearance Link to comment
square_case Posted February 5 Author Share Posted February 5 (edited) On 2/5/2024 at 1:42 PM, square_case said: Here is the website link: https://www.clearchain.house I wanted to show the portfolio first child image when someone open the website and also on hover the portfolio items it will show the different image. and make the items not clickable. I attached the section image below. this is the code that I'm using for it: <script> document.addEventListener('DOMContentLoaded', function () { // Find the first .portfolio-hover-item and set data-active to true var firstPortfolioItem = document.querySelector('.portfolio-hover-item:first-child'); if (firstPortfolioItem) { firstPortfolioItem.setAttribute('data-active', 'true'); } }); </script> Edited February 7 by square_case Link to comment
tuanphan Posted February 7 Share Posted February 7 The url doesn't work. Can you check it again? Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
square_case Posted February 7 Author Share Posted February 7 here is the url: https://www.clearchain.house Link to comment
square_case Posted February 8 Author Share Posted February 8 On 2/7/2024 at 3:10 PM, tuanphan said: The url doesn't work. Can you check it again? here is the url: https://www.clearchain.house Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment