-6

How can I make this effect to use this image

I have to use this effect on many images so I can't use white effect image.

And it is possible or not?

3 Answers3

5

You can try after or before Pseudo Elements to make this.

[Demo]

.pillar:after, .pillar:before {
  position: absolute;
  content: '';
  height: 350px;
  width: 64px;
  top: 16px;
  left: 70px;
  background-image: url(http://www.indonesia.travel/public/media/images/upload/poi/Danau%20Segara%20Anak%20-%20Gallery.jpg);
}
Manwal
  • 23,450
  • 12
  • 63
  • 93
Mukul Kant
  • 7,074
  • 5
  • 38
  • 53
1

yes, it is possible
here you can download the plugin: http://almogbaku.github.io/imageMask/

  1. Create image element

    <img src="image.jpg" class="mySelector" />

  2. Create mask image(black will keep stay, and the transparent will cutted of) mask

  3. Add imageMask query to the ready event. use function .imageMask(path_to_mask)

    $( document ).ready( function() { $( ".mySelector" ).imageMask( "mask.png" ); } );

  4. You can add some callback handler

    $( document ).ready( function() { $( ".mySelector" ).imageMask( "mask.png", function( $canvas ) { console.log( 'Do something here!', $canvas ); } ); } );

  5. DONE!

Lugarini
  • 792
  • 5
  • 11
  • 32
-1

It is basically possible in many ways.

The easiest, I think, is to create a "mask" with all the white lines, and using a transparent background. Then simply put your mask on top of your image, and voila.

EDIT

Here's your mask : Click !

EDIT 2

If you want to protect your image against copy, maybe it's better to not upload it, and just showing modified img online =)

Hotted24
  • 502
  • 3
  • 8