It's free and you have access to premium codes!
Welcome back! Please login to your account.
Don't worry, we'll send you a message to help you to recover your acount.
Please check your email for instructions to activate your account.
Written by 3 March 2021
Photos are inseparable parts of all websites and without them, the web pages are very boring. But to make them more attractive, it is a wise way to add reflection to them. With the following code script, it is shown how to add reflection effect to the images.
<!-- this script is provided by https://www.htmlfreecode.com coded by: Kerixa Inc. -->
<style>
.reflection {
-webkit-box-reflect: below 0px linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.9));
}
body {
background-color: #000;
text-align: center;
}
</style>
<img src="http://htmlfreecode.com/files/phone.png" class="reflection" width="150px" />
<a target='_blank' href='https://www.htmlfreecode.com' style='font-size: 8pt; text-decoration: none'>Html Free Codes</a>
Comments
Here you can leave us commments. Let us know what you think about this code tutorial!