brysonprice Posted February 18, 2015 Author Share Posted February 18, 2015 @BernardWest Thanks man:) Where do I paste the code from the jsbin website? Link to comment
alxfyv Posted February 19, 2015 Share Posted February 19, 2015 @brysonprice: From the research I've done, this is what seems to me to be the case. CSS can be used to change an image on hover when CSS has been used to set the non-hover image in the first place. This makes sense. What you do with CSS you can change with CSS. However, in your template the image you want to change on hover is not created by CSS. It's set by the HTML code of the template. It's "hard-coded," so to speak, and, so far as I understand, CSS can't be used to substitute another image in its place. I'm a retired attorney who was asked by a friend to build a website. In a prior lifetime, in a galaxy far, far away and long, long ago, I was a computer systems analyst / programmer. I'm a novice autodidact in CSS, JavaScript and HTML learning in part by example.. I've asked questions on this forum and been lucky enough to have others help me, so I'm inclined to answer any question I can. Pay it forward. Link to comment
alxfyv Posted February 19, 2015 Share Posted February 19, 2015 ^ continued: The CSS code you found at CSS Hover Effects is an example of using CSS to change what CSS has done in the first place. If what you're intent upon doing is substituting a different image on hover, JavaScript can probably do it but I don't think I can help because I don't know JavaScript. If instead you want to apply one of the hover effects found at Hover.css to the image that's already there, I can help. I'm a retired attorney who was asked by a friend to build a website. In a prior lifetime, in a galaxy far, far away and long, long ago, I was a computer systems analyst / programmer. I'm a novice autodidact in CSS, JavaScript and HTML learning in part by example.. I've asked questions on this forum and been lucky enough to have others help me, so I'm inclined to answer any question I can. Pay it forward. Link to comment
alxfyv Posted February 19, 2015 Share Posted February 19, 2015 ^ continued: If you want to correspond directly, go to my user overview page. There you will find my email address. I'm a retired attorney who was asked by a friend to build a website. In a prior lifetime, in a galaxy far, far away and long, long ago, I was a computer systems analyst / programmer. I'm a novice autodidact in CSS, JavaScript and HTML learning in part by example.. I've asked questions on this forum and been lucky enough to have others help me, so I'm inclined to answer any question I can. Pay it forward. Link to comment
alxfyv Posted February 19, 2015 Share Posted February 19, 2015 ^ continued: The example @Bernard West coded for you above works because the image called by the HTML code is color to start with. Your social icon images are black and white to start with and I don't know of a way to use CSS to add color where it doesn't exist to begin with. I'm a retired attorney who was asked by a friend to build a website. In a prior lifetime, in a galaxy far, far away and long, long ago, I was a computer systems analyst / programmer. I'm a novice autodidact in CSS, JavaScript and HTML learning in part by example.. I've asked questions on this forum and been lucky enough to have others help me, so I'm inclined to answer any question I can. Pay it forward. Link to comment
Bernard West Posted February 19, 2015 Share Posted February 19, 2015 Well, we'd have to customise it for your particular page. If you want to use that effect, let us know which page(s), and I'll write some code for you. But you'll need to provide coloured images as the base images. Your social icons are currently black and white. Link to comment
brysonprice Posted February 19, 2015 Author Share Posted February 19, 2015 Bernard, on that link, I'm not seeing an effect. The "output" section is blank Link to comment
brysonprice Posted February 19, 2015 Author Share Posted February 19, 2015 @Alxfyv If the image is coded in HTML, could we use HTML to change the image upon hovering? I've been meaning to tell you that I really like that "back pulse" transition on the Hover.css page! Link to comment
Bernard West Posted February 19, 2015 Share Posted February 19, 2015 Hmm, that's weird, it's not showing when I view it in Chrome, but it shows in Firefox. Oh well, just replace the image path (i.e the http://..... ) in between the quotes after 'src' in the code with an image path of any colour image you've got on the web. Link to comment
Bernard West Posted February 19, 2015 Share Posted February 19, 2015 Try this, it seems to work. I just picked another random image. http://jsbin.com/fejakuluna/1/edit?html,css,js,output Link to comment
Bernard West Posted February 19, 2015 Share Posted February 19, 2015 You need to use javascript to change the HTML. Link to comment
brysonprice Posted February 19, 2015 Author Share Posted February 19, 2015 @BernardWest Are you familiar with how to do this? Or point me somewhere that I could read up on it? Link to comment
Bernard West Posted February 19, 2015 Share Posted February 19, 2015 Absolutely. But you need to tell me which effect you want to do and create/upload the appropriate images and give links to all the relevant pages/links. Did you see this new example? - http://jsbin.com/fejakuluna/1/edit?html,css,js,output I'm off to India for a month in a week. So I've only got a couple more days I can help you, then I'll be too busy getting ready. So you need to hurry up if you want my help. ;) Link to comment
Bernard West Posted February 19, 2015 Share Posted February 19, 2015 I should add, the CSS only effects will be much easier to do than javascript code. The colour/black and white example I gave should be very easy to do once you create colour images. Link to comment
brysonprice Posted February 19, 2015 Author Share Posted February 19, 2015 Thanks for your help Bernard! Can we correspond through email? It might be quicker...I can email you or you feel free to email me to keep your address private: BrysonPriceMusic@gmail.com Link to comment
Bernard West Posted February 21, 2015 Share Posted February 21, 2015 In amongst all the other tricks and code provided, I worked with Bryson via email to do an "invert" effect on his contact page. Very simple, but I didn't happen to find an IE work around. I have an nearly up to date IE and the effect doesn't work in there. He'll need to google, or better yet, ask at StackOverflow or the like for some code that he can append that will work with IE. Here's the invert CSS code that needs to be inserted into the header of that page: <style> .thumb-image:hover { filter: invert(100%) !important; -webkit-filter: invert(100%) !important; } </style> Link to comment
Bernard West Posted February 21, 2015 Share Posted February 21, 2015 I meant to add, you can add transition effects to smooth in and out the inversion of colours. Link to comment
Guest Posted February 24, 2015 Share Posted February 24, 2015 @brysonprice Sorry for being off topic but could you tell me how you made a full screen navigation menu please? Link to comment
AHD Posted December 12, 2015 Share Posted December 12, 2015 I am trying all of these and none (with sort of-the exception of final code above. However, I am trying to start out with my set of images WITH an opacity mask and when rolled over, I want the fully colored image to appear. Anyone know how to do that? Link to comment
alxfyv Posted December 16, 2015 Share Posted December 16, 2015 So as not to hijack this thread with another, please post your question as a thread of it's own. Don't forget to give the url to your site and the template name. Leave a comment here giving the url to your question. I'm a retired attorney who was asked by a friend to build a website. In a prior lifetime, in a galaxy far, far away and long, long ago, I was a computer systems analyst / programmer. I'm a novice autodidact in CSS, JavaScript and HTML learning in part by example.. I've asked questions on this forum and been lucky enough to have others help me, so I'm inclined to answer any question I can. Pay it forward. Link to comment
Guest Posted January 7, 2016 Share Posted January 7, 2016 Also note, declaring the type of style: <style type="text/css"> CSS Here </style> seems important Link to comment
mmnauman Posted February 2, 2016 Share Posted February 2, 2016 You will get all your answers and the ways to create rollover effect.http://www.trendingwidgets.com/2016/02/add-rollover-image-effects-image.html Link to comment
Pareto-Design Posted April 20, 2016 Share Posted April 20, 2016 Hello Everyone! I put together a comprehensive guide on how add hover effects to your images We cover fade effect Grow effect invert color effect Check it out here Hi, my name is Forrest. I am a founding member of [Pareto Design][1]. Addicted to progress, designing better democracy with tech, & driving youth demand for electric vehicles http://goo.gl/hK1WGZ [1]: http://pareto-design.com Link to comment
Adaniels Posted April 23, 2016 Share Posted April 23, 2016 @pareto-design the fade effect worked great! but the image I'm using for the rollover effect is a png (a circle) and yet the fade is acting on a square. Is there a way to make it fade the circle only? Any help would be great! Link to comment
Adaniels Posted April 23, 2016 Share Posted April 23, 2016 @pareto-design the fade effect worked great! but the image I'm using for the rollover effect is a png (a circle) and yet the fade is acting on a square. Is there a way to make it fade the circle only? Any help would be great! Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.