by the law in effect when the offense was committed, and the former
law is continued in effect for that purpose. For purposes of this
section, an offense was committed before the effective date of this
Act if any element of the offense occurred before that date.