Black Friday Sale! Get up to $40 off GP Premium!Learn more

Reply To: movement effect over the posts photos

Home Forums Support movement effect over the posts photos Reply To: movement effect over the posts photos

#186241
Tom
Lead Developer
Lead Developer

Hi Rosa,

Give this CSS a try:

.post-image {
  position: relative;
  overflow: hidden;
}
.post-image img {
  max-width: 100%;
  
  -moz-transition: all 0.3s;
  -webkit-transition: all 0.3s;
  transition: all 0.3s;
}
.post-image:hover img {
  -moz-transform: scale(1.1);
  -webkit-transform: scale(1.1);
  transform: scale(1.1);
}

Adding CSS: https://generatepress.com/knowledgebase/adding-css/