_animation.scss 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. $animate: all 0.2s ease-in-out;
  2. #text_figli{
  3. z-index: 999;
  4. p{
  5. & > a{
  6. z-index: 999;
  7. &:before,
  8. &:after {
  9. content: "";
  10. position: absolute;
  11. bottom: -1px;
  12. width: 0px;
  13. height: 1px;
  14. margin: 1px 0 0;
  15. transition: $animate;
  16. transition-duration: 0.3s;
  17. opacity: 0;
  18. background-color: black;
  19. }
  20. &::before{
  21. left: 50%;
  22. }
  23. &:after{
  24. right: 50%;
  25. }
  26. &:hover {
  27. cursor: pointer;
  28. &:before,
  29. &:after {
  30. width: 100%;
  31. opacity: 1;
  32. }
  33. &:before,
  34. &:after {
  35. width: 50%;
  36. }
  37. }
  38. }
  39. }
  40. }
  41. .circle_hover{
  42. position: absolute;
  43. width: 0px;
  44. height: 0px;
  45. transform: translate(-50%, -50%);
  46. z-index: 0;
  47. transition: height .2s, width .2s;
  48. &.open{
  49. width: 200px;
  50. height: 200px;
  51. transition: height .5s, width .5s;
  52. }
  53. &.publique{
  54. background:
  55. url("/user/themes/figureslibres/images/forme2.svg") center no-repeat;
  56. background-size: cover;
  57. }
  58. &.sociale{
  59. background: $color_sociale;
  60. border-radius: 100px;
  61. }
  62. &.culturelle{
  63. background:
  64. url("/user/themes/figureslibres/images/forme3.svg") center no-repeat;
  65. background-size: cover;
  66. }
  67. }