The quadrupole collectivity of neutron-rich even-even neon and magnesium nuclei around $N=20$, $^{28,30}$Ne, and $^{34,36}$Mg, was studied via proton inelastic scattering on a liquid hydrogen target by in-beam $\gamma$-ray spectroscopy in inverse kinematics.