position: relative
;<script type="text/javascript">
jQuery(function () {
jQuery.scrollUp({
// Element ID
scrollName: 'scroll_to_up',
// Distance from top/bottom before showing element (px)
scrollDistance: 359,
// 'top' or 'bottom'
scrollFrom: 'top',
// Speed back to top (ms)
scrollSpeed: 300,
// Scroll to top easing (see http://easings.net/)
easingType: 'linear',
// Fade, slide, none
animation: 'fade',
// Animation speed (ms)
animationSpeed: 200,
// Text for element, can contain HTML
scrollText: 'Scroll To Up',
scrollTrigger: false, // Set a custom triggering element. Can be an HTML string or jQuery object
scrollTarget: false, // Set a custom target element for scrolling to. Can be element or number
scrollTitle: false, // Set a custom <a> title if required.
scrollImg: false, // Set true to use image
activeOverlay: false, // Set CSS color to display scrollUp active point, e.g '#00FFFF'
zIndex: 2147483647 // Z-Index for the overlay
});
});
</script>
jQuery(function () {
jQuery.scrollUp({
// Element ID
scrollName: 'scroll_to_up',
// Distance from top/bottom before showing element (px)
scrollDistance: 359,
// 'top' or 'bottom'
scrollFrom: 'top',
// Speed back to top (ms)
scrollSpeed: 300,
// Scroll to top easing (see http://easings.net/)
easingType: 'linear',
// Fade, slide, none
animation: 'fade',
// Animation speed (ms)
animationSpeed: 200,
// Text for element, can contain HTML
scrollText: 'Scroll To Up',
scrollTrigger: false, // Set a custom triggering element. Can be an HTML string or jQuery object
scrollTarget: false, // Set a custom target element for scrolling to. Can be element or number
scrollTitle: false, // Set a custom <a> title if required.
scrollImg: false, // Set true to use image
activeOverlay: false, // Set CSS color to display scrollUp active point, e.g '#00FFFF'
zIndex: 2147483647 // Z-Index for the overlay
});
});
#scroll_to_up {display: none}
.comment {
position: relative; }
.comment .block {
position: relative;
border: 1px cadetblue solid;
z-index: 1;
height: 100px;
width: 400px;
border-bottom-left-radius: 10px;
border-bottom-right-radius: 10px;
border-top-right-radius: 10px; }
.comment .block__triangle {
top: -12px;
display: block;
height: 12px;
width: 20px;
z-index: 2;
border-bottom: white 1px solid;
border-left: solid 1px cadetblue;
border-top: 0;
position: absolute; }
.comment .block__triangle:after {
top: -15px;
content: "";
display: block;
border-bottom-left-radius: 150px;
border-left: solid 1px cadetblue;
border-bottom: 1px solid cadetblue;
border-top: transparent;
height: 12px;
width: 20px; }