 
     internal func commonInit() {
         layer.cornerRadius = cornerRadius
-        contentView.layer.cornerRadius = layer.cornerRadius
-        contentView.clipsToBounds = true
-        contentView.addSubview(glowEffect)
-        contentView.opaque = true
 
         glowEffect.alpha = glowEffectAlpha
 


import UIKit

public class ParallaxView: UICollectionViewCell {

    // MARK: Properties

    private let glowEffect: UIImageView

    /// Maximum deviation of the shadow relative to the center
    public var shadowPanDeviation = 15

    /**
     Property allow to customize parallax effect (pan, angles, etc.)

        let motionGroup = UIMotionEffectGroup()
        motionGroup.motionEffects = [parallaxMotionEffect, veriticalShadowEffect, horizontalShadowEffect]

        parallaxEffectView?.addMotionEffect(motionGroup)

        // Glow effect
        let verticalGlowEffect = UIInterpolatingMotionEffect(keyPath: "center.y", type: .TiltAlongVerticalAxis)
