Deprecated: Creation of dynamic property wpdb::$categories is deprecated in /home/don_croy/designservicesfortwayne.com/wp-includes/wp-db.php on line 760

Deprecated: Creation of dynamic property wpdb::$post2cat is deprecated in /home/don_croy/designservicesfortwayne.com/wp-includes/wp-db.php on line 760

Deprecated: Creation of dynamic property wpdb::$link2cat is deprecated in /home/don_croy/designservicesfortwayne.com/wp-includes/wp-db.php on line 760

Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /home/don_croy/designservicesfortwayne.com/wp-includes/comment-template.php on line 1747

Deprecated: Creation of dynamic property UDesignShortcodesButton::$dir_path is deprecated in /home/don_croy/designservicesfortwayne.com/wp-content/plugins/udesign-shortcodes-button/udesign-shortcodes-button.php on line 30

Deprecated: Creation of dynamic property Alpha_Sidebar_Builder::$sidebars is deprecated in /home/don_croy/designservicesfortwayne.com/wp-content/plugins/u-design-core/framework/builders/sidebar/class-alpha-sidebar-builder.php on line 105

Deprecated: Creation of dynamic property POMO_FileReader::$is_overloaded is deprecated in /home/don_croy/designservicesfortwayne.com/wp-includes/pomo/streams.php on line 26

Deprecated: Creation of dynamic property POMO_FileReader::$_pos is deprecated in /home/don_croy/designservicesfortwayne.com/wp-includes/pomo/streams.php on line 29

Deprecated: Creation of dynamic property POMO_FileReader::$_f is deprecated in /home/don_croy/designservicesfortwayne.com/wp-includes/pomo/streams.php on line 160

Deprecated: Creation of dynamic property MO::$_gettext_select_plural_form is deprecated in /home/don_croy/designservicesfortwayne.com/wp-includes/pomo/translations.php on line 292

Deprecated: Creation of dynamic property WP_Block_Type::$skip_inner_blocks is deprecated in /home/don_croy/designservicesfortwayne.com/wp-includes/class-wp-block-type.php on line 391

Deprecated: Creation of dynamic property WP_Block_Type::$skip_inner_blocks is deprecated in /home/don_croy/designservicesfortwayne.com/wp-includes/class-wp-block-type.php on line 391
CSS Page Peel Box – Web & Design Services of Fort Wayne
September 5, 2014 in Code

CSS Page Peel Box

Post placeholder image
[divider line_type=”No Line” custom_height=”20″]

MouseOver block with page peel — Entirely CSS

My latest bit of code is for a mouse-over box used as a link. “block_link”. I wanted to build an effect using purely CSS to deliver a box shadow and image opacity effect and I believe it turned out pretty nice. I also like the benefit that it makes handheld devices stagger a second while scrolling. It helps signal the link.

The examples can be seen on the Salvatori’s homepage: https://salvatorisitalian.com/.

Please feel free to play with the code and see what you come up with. Note: I had to change the background color of the page to show the transparency effect. It was designed to highlight on a colored or textured background.

[divider line_type=”No Line” custom_height=”20″]
.block_link { position: relative; color: #000; background-image:url(http://designservicesfortwayne.com/wp-content/uploads/2014/09/ffffff63.png); /* ffffff33 denotes a white image at 63% opacity */ /* The image is only a few pixels in size, so it is repeated */ background-repeat:repeat; } .block_link:hover{ background-image:url(http://designservicesfortwayne.com/wp-content/uploads/2014/09/ffffff33.png); /* ffffff63 denotes a white image at 33% opacity */ background-repeat:repeat; } .block_link:before { content: ""; position: absolute; top: 0; right: 0; border-width: 0 16px 16px 0; border-style: solid; border-color: #ffffff #6d6a88; } .block_link:hover:before { content: ""; position: absolute; top: 0; right: 0; border-width: 0 32px 32px 0; border-style: solid; border-color: #fff #6d6a88; } </div>



By browsing this website, you agree to our privacy policy.
I Agree