Guest User

Untitled

a guest
Oct 19th, 2017
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.47 KB | None | 0 0
  1. <div key={index} className='vote_img_div active_imgvote_border'>
  2.  
  3.  
  4. <div className="vote_img unchange_div">
  5.  
  6. //contents
  7.  
  8. </div>
  9.  
  10.  
  11. <div onClick={() => this.handleClick(content.post_poll_content_id)}
  12. className={((this.state.voted_id === content.post_poll_content_id && this.state.active) ? 'vote_card_hover active' : 'vote_card_hover')}>
  13.  
  14.  
  15. </div>
  16.  
  17. </div>
  18.  
  19. .vote_img_div {
  20.  
  21. width: 292.5px;
  22. display: inline-block;
  23. margin-left: 8.25px;
  24. margin-bottom: 5px;
  25. overflow: hidden;
  26. position: relative;
  27. background-color: whitesmoke;
  28. transition: all .2s ease-in-out;
  29.  
  30. }
  31.  
  32. .vote_img {
  33.  
  34. width: 100%;
  35. height: 100%;
  36. position: relative;
  37. cursor: pointer;
  38.  
  39. }
  40.  
  41. .vote_card_hover {
  42.  
  43. position: absolute;
  44. top: 0;
  45. bottom: 0;
  46. left: 0;
  47. right: 0;
  48. height: 100%;
  49. width: 100%;
  50. overflow: hidden;
  51. opacity: 0;
  52. transition: .3s ease;
  53. background: rgba(0, 0, 0, .70);
  54.  
  55. }
  56.  
  57. .vote_card_hover:before {
  58.  
  59. content: '';
  60. position: absolute;
  61. top: 50%;
  62. left: 50%;
  63. transform: translate(-50%, -50%) scale(0);
  64. width: 500px;
  65. height: 500px;
  66. background: rgba(0, 111, 147, 0.70);
  67. transition: transform 0.8s ease;
  68. border-radius: 50%;
  69.  
  70. }
  71.  
  72. .vote_card_hover.active:before {
  73.  
  74. transform: translate(-50%, -50%) scale(1);
  75.  
  76. }
  77.  
  78. .vote_img_div:hover .vote_card_hover {
  79. opacity: 1;
  80. cursor: pointer;
  81. -webkit-transform-style: preserve-3d;
  82. -webkit-transform: translate3d(0, 0, 0);
  83.  
  84.  
  85. }
Add Comment
Please, Sign In to add comment